@agilant/toga-blox 1.0.74 → 1.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -46,7 +46,6 @@ const SearchDropdownInput = ({ options = [], selectedValue = [], onChange, place
|
|
|
46
46
|
.join(",");
|
|
47
47
|
const isEmpty = !selectedLabels.trim();
|
|
48
48
|
if (!canStore) {
|
|
49
|
-
// If we have no place to store it, just do handleFilter
|
|
50
49
|
handleFilter?.();
|
|
51
50
|
return;
|
|
52
51
|
}
|
|
@@ -58,12 +57,10 @@ const SearchDropdownInput = ({ options = [], selectedValue = [], onChange, place
|
|
|
58
57
|
});
|
|
59
58
|
}
|
|
60
59
|
else {
|
|
61
|
-
if (!searchItems.includes(selectedLabels)) {
|
|
62
|
-
setSearchItems?.([...searchItems, selectedLabels]);
|
|
63
|
-
}
|
|
64
60
|
setSearchCriteria?.((prev) => {
|
|
61
|
+
const filtered = prev.filter((c) => c.searchColumn.id !== column.id);
|
|
65
62
|
const newCriteria = [
|
|
66
|
-
...
|
|
63
|
+
...filtered,
|
|
67
64
|
{
|
|
68
65
|
searchColumn: column,
|
|
69
66
|
submittedSearchText: selectedLabels,
|