diff --git a/resources/js/dashboard.js b/resources/js/dashboard.js index 50ce1d7..4f7b42a 100644 --- a/resources/js/dashboard.js +++ b/resources/js/dashboard.js @@ -266,7 +266,7 @@ function editListInit() { const filterInputInit = function() { const $filter = $("#filter-input"); - if ($filter.length) { + if ($filter.length && $editList.find(".list-group-item").length) { // empty the filter $filter.val("");