From 2b9f20a1b5e0ddb043df8589212e347ee601d5e2 Mon Sep 17 00:00:00 2001 From: martin <74269598+martabal@users.noreply.github.com> Date: Thu, 2 Nov 2023 19:43:27 +0100 Subject: [PATCH] fix: update like status (#4803) --- web/src/lib/components/asset-viewer/asset-viewer.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/lib/components/asset-viewer/asset-viewer.svelte b/web/src/lib/components/asset-viewer/asset-viewer.svelte index 27597153c8..c519346e8b 100644 --- a/web/src/lib/components/asset-viewer/asset-viewer.svelte +++ b/web/src/lib/components/asset-viewer/asset-viewer.svelte @@ -142,6 +142,8 @@ }); if (data.length > 0) { isLiked = data[0]; + } else { + isLiked = null; } } catch (error) { handleError(error, "Can't get Favorite");