From c5101c0e34ba8db5aeb009f3a17c82fdaeb869ae Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Tue, 24 May 2022 13:12:36 +1000
Subject: Don't show blank image in info-modal for for compound-image with only
 1 sub-image

---
 src/components/TileInfoModal.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/components/TileInfoModal.vue')

diff --git a/src/components/TileInfoModal.vue b/src/components/TileInfoModal.vue
index 55d95b4..1123387 100644
--- a/src/components/TileInfoModal.vue
+++ b/src/components/TileInfoModal.vue
@@ -139,13 +139,13 @@ export default defineComponent({
 					</ul>
 				</div>
 				<div v-else>
-					<div :style="firstImgStyles"/>
+					<div v-if="tolNode.imgName[0] != null" :style="firstImgStyles"/>
 					<ul v-if="imgInfo1 != null">
 						<li>License: {{imgInfo1.license}}</li>
 						<li><a :href="imgInfo1.sourceUrl" class="underline">Source URL</a></li>
 						<li>Copyright Owner: {{imgInfo1.copyrightOwner}}</li>
 					</ul>
-					<div :style="secondImgStyles"/>
+					<div v-if="tolNode.imgName[1] != null" :style="secondImgStyles"/>
 					<ul v-if="imgInfo2 != null">
 						<li>License: {{imgInfo2.license}}</li>
 						<li><a :href="imgInfo2.sourceUrl" class="underline">Source URL</a></li>
-- 
cgit v1.2.3

