Commit 7ed36ede authored by Yashu Mittal's avatar Yashu Mittal 👍🏻

Check if image exisit or not

parent b912ce8e
......@@ -55,7 +55,7 @@
computed: {
articleClass() {
let classes = ['post-card', 'post'];
if (this.cardData.fields.image === null) {
if (this.cardData.fields === null) {
classes.push('no-image')
}
const cardTagClass = 'post-' + this.cardData.tags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment