-1👍
You probably just need to add null check like this:
<div class="pull-left">
<a href="#">
<img class="media-object avatar" :src="singlePost && singlePost.user.photo_url" alt="img" />
</a>
- [Vuejs]-Select from JSON, use radio input in Vue.js
- [Vuejs]-Creating a scope without defining a component
Source:stackexchange.com