From 131febe653915846ad417ab2aabd6d58cab407e1 Mon Sep 17 00:00:00 2001
From: Tusooa Zhu <tusooa@kazv.moe>
Date: Sat, 11 Jun 2022 18:06:46 -0400
Subject: Display attachment description updates properly

---
 src/components/attachment/attachment.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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

diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index 2a89886d..14f6a0ae 100644
--- a/src/components/attachment/attachment.vue
+++ b/src/components/attachment/attachment.vue
@@ -166,7 +166,7 @@
           :icon="placeholderIconClass"
         />
         <p>
-          {{ localDescription }}
+          {{ edit ? localDescription : attachment.description }}
         </p>
       </a>
 
@@ -244,7 +244,7 @@
       </span>
     </div>
     <div
-      v-if="size !== 'hide' && !hideDescription && (edit || (localDescription && showDescription))"
+      v-if="size !== 'hide' && !hideDescription && (edit || (attachment.description && showDescription))"
       class="description-container"
       :class="{ '-static': !edit }"
     >
@@ -257,7 +257,7 @@
         @keydown.enter.prevent=""
       >
       <p v-else>
-        {{ localDescription }}
+        {{ attachment.description }}
       </p>
     </div>
   </div>
-- 
cgit v1.2.3-70-g09d2

