Added delete option to scene edits.
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user