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 studip/studip!856
parent 7fef0df3
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
<a :href="getElementUrl(bookmark)" :title="bookmark.attributes.title">
<div
class="preview-image"
:class="[hasImage(child) ? '' : 'default-image']"
:class="[hasImage(bookmark) ? '' : 'default-image']"
:style="getChildStyle(bookmark)"
></div>
<div class="description">
......@@ -96,8 +96,8 @@ export default {
return {};
}
},
hasImage(child) {
return child.relationships?.image?.data !== null;
hasImage(bookmark) {
return bookmark.relationships?.image?.data !== null;
},
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment