Fixed actor and movie tiles stash breaking page.

This commit is contained in:
2024-08-26 17:05:21 +02:00
parent 3fdeddb272
commit 9e8a20494b
2 changed files with 4 additions and 4 deletions

View File

@@ -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));
</script>
<style scoped>