Skip to content

Commit

Permalink
Merge pull request #1 from HBPMedical/fix-article-image
Browse files Browse the repository at this point in the history
Fixed article without image
  • Loading branch information
nicedexter authored May 5, 2020
2 parents dc65572 + d9d6647 commit 225add0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/components/ArticlesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
</p>
<p id="title" class="uk-text-large">{{ article.title }}</p>
<div class="uk-card-media-top">
<img :src="api_url + article.image.url" alt="" height="100" />
<img
v-if="article.image"
:src="api_url + article.image.url"
alt=""
height="100"
/>
</div>
</div>
</div>
Expand Down

0 comments on commit 225add0

Please sign in to comment.