From 836a67bf6455612af4e6e46450caf5f3b88b8edb Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Sat, 12 Sep 2020 11:32:16 +0200
Subject: viewer: fixed a minor crash in the information panel for missing
 resources

(cherry picked from commit 24d542b11b91f967ec66ec0b5b2415427d028a8b)
---
 viewer/src/components/LdInformation.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'viewer/src/components/LdInformation.vue')

diff --git a/viewer/src/components/LdInformation.vue b/viewer/src/components/LdInformation.vue
index 29bd1be..66ccc80 100644
--- a/viewer/src/components/LdInformation.vue
+++ b/viewer/src/components/LdInformation.vue
@@ -18,7 +18,7 @@
 -->
 
 <template>
-  <div class="flex-column" :class="$style.infopanel">
+  <div v-if="item" class="flex-column" :class="$style.infopanel">
     <div v-if="item.title" :class="$style.title">{{ item.title }}</div>
     <time v-if="item.datetime" :datetime="item.datetime" :class="$style.datetime">{{ formatDate }}</time>
     <div v-if="item.description" :class="$style.description" v-html="formatDescription" />
-- 
cgit v1.2.3

