Skip to content

Commit

Permalink
Explorer UI: fixed bug caused by filter dropdown
Browse files Browse the repository at this point in the history
Signed-off-by: thfries <thomas.fries0@gmail.com>
  • Loading branch information
thfries committed Nov 13, 2022
1 parent d702444 commit bb91ef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/modules/things/searchFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ export function performLastSearch() {
function updateFilterList() {
dom.filterList.innerHTML = '';
Utils.addDropDownEntries(dom.filterList, ['Favourite search filters'], true);
Utils.addDropDownEntries(dom.filterList, Environments.current().filterList);
Utils.addDropDownEntries(dom.filterList, Environments.current().filterList ?? []);
Utils.addDropDownEntries(dom.filterList, ['Field search filters'], true);
Utils.addDropDownEntries(dom.filterList, Environments.current().fieldList
Utils.addDropDownEntries(dom.filterList, (Environments.current().fieldList ?? [])
.map((f) => `eq(${f.path},${FILTER_PLACEHOLDER})`));
Utils.addDropDownEntries(dom.filterList, ['Example search filters'], true);
Utils.addDropDownEntries(dom.filterList, filterExamples);
Expand Down

0 comments on commit bb91ef1

Please sign in to comment.