From 5b1ac27058ca26935ce90dad239be60e666407e1 Mon Sep 17 00:00:00 2001 From: waclaw66 Date: Tue, 29 Aug 2023 20:49:51 +0200 Subject: [PATCH] fix(web): null location (#3906) --- .../components/asset-viewer/detail-panel.svelte | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/web/src/lib/components/asset-viewer/detail-panel.svelte b/web/src/lib/components/asset-viewer/detail-panel.svelte index 8791d89a5a..7593955e99 100644 --- a/web/src/lib/components/asset-viewer/detail-panel.svelte +++ b/web/src/lib/components/asset-viewer/detail-panel.svelte @@ -242,12 +242,16 @@

{asset.exifInfo.city}

-
-

{asset.exifInfo.state}

-
-
-

{asset.exifInfo.country}

-
+ {#if asset.exifInfo?.state} +
+

{asset.exifInfo.state}

+
+ {/if} + {#if asset.exifInfo?.country} +
+

{asset.exifInfo.country}

+
+ {/if}
{/if}