Skip to content

Commit

Permalink
IBX-7052: UDW gets closed after switching Bookmarks view into grid vi…
Browse files Browse the repository at this point in the history
…ew (#1088)
  • Loading branch information
GrabowskiM authored Jan 11, 2024
1 parent 90e1f66 commit b3e7a40
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,9 @@ const UniversalDiscoveryModule = (props) => {

useEffect(() => {
if (currentView === 'grid') {
loadedLocationsMap[loadedLocationsMap.length - 1].subitems = [];
if (loadedLocationsMap[loadedLocationsMap.length - 1]) {
loadedLocationsMap[loadedLocationsMap.length - 1].subitems = [];
}

dispatchLoadedLocationsAction({ type: 'SET_LOCATIONS', data: loadedLocationsMap });
} else if (
Expand Down

0 comments on commit b3e7a40

Please sign in to comment.