Fix an error when there are no servers

This commit is contained in:
luukas 2022-06-16 00:19:48 +03:00
parent 8611c7e5e4
commit d9c03caa9b
No known key found for this signature in database
GPG Key ID: CC4915E8D71FC044

View File

@ -835,7 +835,8 @@
"ordering": false, // false to disable sorting (or any other option)
"paging": false
});
document.getElementById('first').setAttribute('draggable', false);
const first = document.querySelector('#first')
first !== null && first.setAttribute('draggable', false);
$('.dataTables_length').addClass('bs-select');
});
/* Search Bar End */
@ -908,4 +909,4 @@
</script>
{% end %}
{% end %}