Fixed actor scene length check in redirect, removed stray console log.

This commit is contained in:
2026-07-13 00:54:52 +02:00
parent 5dbcf81d84
commit 02b7dcb292
2 changed files with 1 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ export async function onBeforeRender(pageContext) {
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}`);
}