mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-24 00:44:09 -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 filterInputInit = function() {
|
||||||
const $filter = $("#filter-input");
|
const $filter = $("#filter-input");
|
||||||
|
|
||||||
if ($filter.length) {
|
if ($filter.length && $editList.find(".list-group-item").length) {
|
||||||
// empty the filter
|
// empty the filter
|
||||||
$filter.val("");
|
$filter.val("");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue