From c2b9a8b7a706cdca58dab7f4a980401e1c20a602 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Thu, 30 Jun 2022 21:16:09 +1000
Subject: Avoid displaying empty img-src info

---
 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 c5f46ec..129e861 100644
--- a/src/components/TileInfoModal.vue
+++ b/src/components/TileInfoModal.vue
@@ -31,13 +31,13 @@
 								<external-link-icon class="inline-block w-3 h-3 ml-1"/>
 							</a>
 						</li>
-						<li>
+						<li v-if="imgInfos[idx]!.url != ''">
 							<a :href="imgInfos[idx]!.url" target="_blank">
 								<span class="underline">Source URL</span>
 								<external-link-icon class="inline-block w-3 h-3 ml-1"/>
 							</a>
 						</li>
-						<li>Artist: {{imgInfos[idx]!.artist}}</li>
+						<li v-if="imgInfos[idx]!.artist != ''">Artist: {{imgInfos[idx]!.artist}}</li>
 						<li v-if="imgInfos[idx]!.credit != ''" class="overflow-auto">
 							Credit: {{imgInfos[idx]!.credit}}
 						</li>
-- 
cgit v1.2.3

