1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +02:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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