fix broken empty selects
Some checks failed
Build and Push Docker Image / build (push) Failing after 6m57s
Some checks failed
Build and Push Docker Image / build (push) Failing after 6m57s
This commit is contained in:
parent
efd4452087
commit
6d82c0a551
@ -128,7 +128,7 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const len = values.length || 1;
|
const len = values.length;
|
||||||
const total = $select.find("option").length;
|
const total = $select.find("option").length;
|
||||||
|
|
||||||
if (len === 0) { $selected.html(defaultSelectedHtml); }
|
if (len === 0) { $selected.html(defaultSelectedHtml); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user