Skip to content

Commit

Permalink
IBX-2422: Cannot Select from library in ImageAsset field
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti committed Feb 23, 2022
1 parent 543e4f1 commit 5925bae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5925bae

Please sign in to comment.