Remove forced custom component from client library
This commit is contained in:
parent
eab1b93c24
commit
07909c9ae3
|
@ -13,22 +13,7 @@
|
||||||
$: routeStore.actions.setRouteParams(params || {})
|
$: routeStore.actions.setRouteParams(params || {})
|
||||||
|
|
||||||
// Get the screen definition for the current route
|
// Get the screen definition for the current route
|
||||||
$: screenDefinition = getScreenDefinition($screenStore.activeScreen?.props)
|
$: screenDefinition = $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],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
// Mark the router as loaded whenever the screen mounts
|
// Mark the router as loaded whenever the screen mounts
|
||||||
|
|
Loading…
Reference in New Issue