sort only if table is actually displayed

This commit is contained in:
tracer 2022-10-26 12:33:38 +02:00
parent 0fba7bc0a0
commit 9867df0a04
1 changed files with 4 additions and 2 deletions

View File

@ -133,6 +133,8 @@ function sortBy(column) {
}
document.addEventListener('DOMContentLoaded', () => {
console.log('loaded')
sortBy('last')
const table = document.getElementById('address_table') || false
if (table) {
sortBy('last')
}
})