Reinitialized commit. Update and actors overview with some filters.
This commit is contained in:
14
pages/scene/+onBeforeRender.js
Normal file
14
pages/scene/+onBeforeRender.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { fetchScenesById } from '../../src/scenes';
|
||||
|
||||
export async function onBeforeRender(pageContext) {
|
||||
const [scene] = await fetchScenesById([Number(pageContext.routeParams.sceneId)]);
|
||||
|
||||
return {
|
||||
pageContext: {
|
||||
title: scene.title,
|
||||
pageProps: {
|
||||
scene,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user