avoid api call with undefined

This commit is contained in:
Theophyl Hoguet committed 2023-03-10 23:37:47 +01:00
1 parent 1c6809c66b
commit 3850e01d10
1 file changed
+1 -1
+1 -1
View File
@@ -16,7 +16,7 @@ export default defineComponent({
</script> </script>
<template> <template>
<div class="flex" v-if="images.keys != null"> <div class="flex" v-if="images.keys !== null">
<Image v-for="[id, image] in images" :key="id" :id="id" /> <Image v-for="[id, image] in images" :key="id" :id="id" />
</div> </div>
<h1 v-else>No image found</h1> <h1 v-else>No image found</h1>