1
0
Fork 0
mirror of synced 2024-09-14 00:08:25 +12:00

Remove forced custom component from client library

This commit is contained in:
Andrew Kingston 2022-08-10 15:52:19 +01:00
parent eab1b93c24
commit 07909c9ae3

View file

@ -13,22 +13,7 @@
$: routeStore.actions.setRouteParams(params || {})
// Get the screen definition for the current route
$: screenDefinition = getScreenDefinition($screenStore.activeScreen?.props)
const getScreenDefinition = definition => {
const test = {
_component: "test",
_id: "asfdasdfefgerdgrfdg",
_styles: {
normal: {},
},
text: "This is a text prop!",
}
return {
...definition,
_children: [...definition._children, test],
}
}
$: screenDefinition = $screenStore.activeScreen?.props
onMount(() => {
// Mark the router as loaded whenever the screen mounts