From 8a11d947077799958ba0b385b4ad06c4a1572e08 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 3 Oct 2023 14:22:42 -0400 Subject: [PATCH] Don't produce an error when the edit list is empty and the filter column isn't --- resources/js/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("");