fix broken empty selects
Some checks failed
Build and Push Docker Image / build (push) Failing after 6m57s

This commit is contained in:
Corban-Lee Jones 2024-10-28 21:49:07 +00:00
parent efd4452087
commit 6d82c0a551

View File

@ -128,7 +128,7 @@ $(document).ready(function() {
}
});
const len = values.length || 1;
const len = values.length;
const total = $select.find("option").length;
if (len === 0) { $selected.html(defaultSelectedHtml); }