aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui')
-rw-r--r--catalog-ui/src/app/ng2/pages/composition/palette/palette.component.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/catalog-ui/src/app/ng2/pages/composition/palette/palette.component.ts b/catalog-ui/src/app/ng2/pages/composition/palette/palette.component.ts
index 02d270b39a..e91798ef36 100644
--- a/catalog-ui/src/app/ng2/pages/composition/palette/palette.component.ts
+++ b/catalog-ui/src/app/ng2/pages/composition/palette/palette.component.ts
@@ -74,7 +74,9 @@ export class PaletteComponent {
const subCategoryToCheck = this.paletteElements[category][subCategory];
const res = subCategoryToCheck.filter((item) => item.searchFilterTerms.toLowerCase().indexOf(searchText) >= 0)
if (res.length > 0) {
- paletteElementsAfterSearch[category] = {};
+ if (paletteElementsAfterSearch[category] == null) {
+ paletteElementsAfterSearch[category] = {};
+ }
paletteElementsAfterSearch[category][subCategory] = res;
}
}