We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f7130e commit 2f550eeCopy full SHA for 2f550ee
frontend/packages/console-shared/src/components/catalog/service/CatalogServiceProvider.tsx
@@ -140,7 +140,10 @@ const CatalogServiceProvider: React.FC<CatalogServiceProviderProps> = ({
140
result[e.properties.type] = [];
141
});
142
catalogItems.forEach((item) => {
143
- (result[item.type] ?? []).push(item);
+ if (!result[item.type]) {
144
+ result[item.type] = [];
145
+ }
146
+ result[item.type].push(item);
147
148
return result;
149
}, [catalogProviderExtensions, catalogItems]);
0 commit comments