Browse Source

fix(web): Assigns description text area with asset description if it exists #4073 (#4125)

Russell Tan 1 year ago
parent
commit
b6c6a7e403
1 changed files with 4 additions and 0 deletions
  1. 4 0
      web/src/lib/components/asset-viewer/detail-panel.svelte

+ 4 - 0
web/src/lib/components/asset-viewer/detail-panel.svelte

@@ -25,6 +25,10 @@
   $: isOwner = $page?.data?.user?.id === asset.ownerId;
 
   $: {
+    if (textarea) {
+      textarea.value = asset?.exifInfo?.description || '';
+    }
+
     // Get latest description from server
     if (asset.id && !api.isSharedLink) {
       api.assetApi.getAssetById({ id: asset.id }).then((res) => {