Skip to content

High performance self-hosted photo and video management solution.

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

Russell Tanb6c6a7e403c5
diff --git a/web/src/lib/components/asset-viewer/detail-panel.svelte b/web/src/lib/components/asset-viewer/detail-panel.svelte
index cea013424f..3025b3d615 100644
--- a/web/src/lib/components/asset-viewer/detail-panel.svelte
+++ b/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) => {