From 9e8a20494bf7b9424f1bb6d576eac384da47d1bd Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Mon, 26 Aug 2024 17:05:21 +0200 Subject: [PATCH] Fixed actor and movie tiles stash breaking page. --- components/actors/tile.vue | 4 ++-- components/movies/tile.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/actors/tile.vue b/components/actors/tile.vue index 940a48a..bf8e603 100644 --- a/components/actors/tile.vue +++ b/components/actors/tile.vue @@ -89,9 +89,9 @@ const props = defineProps({ const pageContext = inject('pageContext'); const { user } = pageContext; const pageStash = pageContext.pageProps.stash; -const currentStash = pageStash || user?.primaryStash; +const currentStash = pageStash || pageContext.assets?.primaryStash; -const favorited = ref(props.actor.stashes.some((actorStash) => actorStash.id === currentStash.id)); +const favorited = ref(props.actor.stashes.some((actorStash) => actorStash.id === currentStash?.id));