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

This commit is contained in:
Russell Tan
2023-09-18 00:21:28 -07:00
committed by GitHub
parent 672560f55b
commit b6c6a7e403

View File

@@ -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) => {