Added delete option to scene edits.

This commit is contained in:
2026-03-17 01:43:49 +01:00
parent 134664095a
commit f7993a9108
6 changed files with 139 additions and 648051 deletions

View File

@@ -28,6 +28,10 @@ export async function onBeforeRender(pageContext) {
restriction: pageContext.restriction,
});
if (!scene) {
throw render(404, `Cannot find scene '${pageContext.routeParams.sceneId}'.`);
}
const [campaigns, tagIds] = await Promise.all([
getRandomCampaigns([
{
@@ -44,10 +48,6 @@ export async function onBeforeRender(pageContext) {
], 'tags', true),
]);
if (!scene) {
throw render(404, `Cannot find scene '${pageContext.routeParams.sceneId}'.`);
}
return {
pageContext: {
title: getTitle(scene),