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 90e1f66 commit b3e7a40Copy full SHA for b3e7a40
src/bundle/ui-dev/src/modules/universal-discovery/universal.discovery.module.js
@@ -383,7 +383,9 @@ const UniversalDiscoveryModule = (props) => {
383
384
useEffect(() => {
385
if (currentView === 'grid') {
386
- loadedLocationsMap[loadedLocationsMap.length - 1].subitems = [];
+ if (loadedLocationsMap[loadedLocationsMap.length - 1]) {
387
+ loadedLocationsMap[loadedLocationsMap.length - 1].subitems = [];
388
+ }
389
390
dispatchLoadedLocationsAction({ type: 'SET_LOCATIONS', data: loadedLocationsMap });
391
} else if (
0 commit comments