mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-12 12:06:38 -05:00
Don't produce an error when the edit list is empty and the filter column isn't
This commit is contained in:
parent
da721d7e38
commit
8a11d94707
1 changed files with 1 additions and 1 deletions
|
@ -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("");
|
||||
|
||||
|
|
Loading…
Reference in a new issue