diff --git a/app/frontend/templates/panel/dashboard.html b/app/frontend/templates/panel/dashboard.html index 34cddf63..8c215a77 100644 --- a/app/frontend/templates/panel/dashboard.html +++ b/app/frontend/templates/panel/dashboard.html @@ -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 @@ -{% end %} \ No newline at end of file +{% end %}