Fixed actor scene length check in redirect, removed stray console log.
This commit is contained in:
@@ -19,8 +19,6 @@ const domain = routeParams.domain;
|
|||||||
const badCredits = ['Pierre Woodman']; // consistently horrible photos
|
const badCredits = ['Pierre Woodman']; // consistently horrible photos
|
||||||
const photos = actor.photos.filter((photo) => photo.entropy > 5.5 && !badCredits.includes(photo.credit));
|
const photos = actor.photos.filter((photo) => photo.entropy > 5.5 && !badCredits.includes(photo.credit));
|
||||||
const aliasTooltipId = useId();
|
const aliasTooltipId = useId();
|
||||||
|
|
||||||
console.log(actor);
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export async function onBeforeRender(pageContext) {
|
|||||||
isEditing && fetchCountries(),
|
isEditing && fetchCountries(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (actor.alias && actorReleases.length === 0 && !Object.hasOwn(pageContext.urlParsed.search, 'inspect')) {
|
if (actor.alias && actorReleases.scenes.length === 0 && !Object.hasOwn(pageContext.urlParsed.search, 'inspect')) {
|
||||||
throw redirect(`/actor/${actor.alias.id}/${actor.alias.slug}`);
|
throw redirect(`/actor/${actor.alias.id}/${actor.alias.slug}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user