Skip to content
Snippets Groups Projects
Commit 72468fbf authored by Ron Lucke's avatar Ron Lucke Committed by Till Glöggler
Browse files

fix #1406

Closes #1406

Merge request !856
parent 7fef0df3
No related branches found
No related tags found
1 merge request!856fix #1406
Pipeline #5488 passed
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<a :href="getElementUrl(bookmark)" :title="bookmark.attributes.title"> <a :href="getElementUrl(bookmark)" :title="bookmark.attributes.title">
<div <div
class="preview-image" class="preview-image"
:class="[hasImage(child) ? '' : 'default-image']" :class="[hasImage(bookmark) ? '' : 'default-image']"
:style="getChildStyle(bookmark)" :style="getChildStyle(bookmark)"
></div> ></div>
<div class="description"> <div class="description">
...@@ -96,8 +96,8 @@ export default { ...@@ -96,8 +96,8 @@ export default {
return {}; return {};
} }
}, },
hasImage(child) { hasImage(bookmark) {
return child.relationships?.image?.data !== null; return bookmark.relationships?.image?.data !== null;
}, },
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment