From cf71a41baec3eb2f99482bd1ca973cec929eb14e Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 25 Oct 2023 12:14:15 -0500 Subject: [PATCH] fix(web): asset ownership does not update when navigating (#4643) --- web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte b/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte index 5551d55444..8da63e03ba 100644 --- a/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte +++ b/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte @@ -33,7 +33,7 @@ export let showDetailButton: boolean; export let showSlideshow = false; - const isOwner = asset.ownerId === $page.data.user?.id; + $: isOwner = asset.ownerId === $page.data.user?.id; type MenuItemEvent = 'addToAlbum' | 'addToSharedAlbum' | 'asProfileImage' | 'runJob' | 'playSlideShow';