diff --git a/src/bundle/ui-dev/src/modules/universal-discovery/content.meta.preview.module.js b/src/bundle/ui-dev/src/modules/universal-discovery/content.meta.preview.module.js index f2b7b0d5ea..00605c97ca 100644 --- a/src/bundle/ui-dev/src/modules/universal-discovery/content.meta.preview.module.js +++ b/src/bundle/ui-dev/src/modules/universal-discovery/content.meta.preview.module.js @@ -36,13 +36,13 @@ const ContentMetaPreview = () => { window.ibexa.helpers.tooltips.parse(refContentMetaPreview.current); }); - if (!markedLocationId || markedLocationId === 1) { + if (!markedLocationId || markedLocationId === 1 || !locationData) { return null; } const { bookmarked, location, version, permissions } = locationData; const bookmarkIconName = bookmarked ? 'bookmark-active' : 'bookmark'; - const isLocationDataLoaded = !!(locationData && locationData.location && locationData.version); + const isLocationDataLoaded = !!(location && version); const toggleBookmarked = () => { const toggleBookmark = bookmarked ? removeBookmark : addBookmark;