sort only if table is actually displayed
This commit is contained in:
parent
0fba7bc0a0
commit
9867df0a04
|
@ -133,6 +133,8 @@ function sortBy(column) {
|
|||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
console.log('loaded')
|
||||
const table = document.getElementById('address_table') || false
|
||||
if (table) {
|
||||
sortBy('last')
|
||||
}
|
||||
})
|
Loading…
Reference in New Issue