diff --git a/public/assets/js/functions.js b/public/assets/js/functions.js index b98e5b8..6a2ecc8 100644 --- a/public/assets/js/functions.js +++ b/public/assets/js/functions.js @@ -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') + } }) \ No newline at end of file