Fixed pagination. Added entity page channel tile expand.
This commit is contained in:
14
pages/entities/+onBeforeRender.js
Normal file
14
pages/entities/+onBeforeRender.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { fetchEntities } from '#/src/entities.js';
|
||||
|
||||
export async function onBeforeRender(_pageContext) {
|
||||
const networks = await fetchEntities({ type: 'primary' });
|
||||
|
||||
return {
|
||||
pageContext: {
|
||||
title: 'Channels',
|
||||
pageProps: {
|
||||
networks,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user