I have a for-loop running in vue using v-for that loops through a media object to see if there are images stored. That works correctly, but now I want a div displayed below it saying "There is no media" if the object is empty. The text "There is no media" always displays though. Any help on this would be greatly appreciated.
Below is my code:
<v-flex>
<p><v-flex sm3 v-for="media in current_sample.media" :key="media.id">
<v-btn @click="delete_image(media.id)">[X]</v-btn> <img :src="'https://orderinformation.s3.amazonaws.com/' + media.path" class="rotateImg" />
</v-flex>
<v-flex sm3 v-if="current_sample.media">There is no media</v-flex>
</p>
</v-flex>
v-if="current_sample.media.path !== '' "