From 071c0ebb40eb9f0d20bbda88d2b3d03022cbdb2d Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Tue, 25 Feb 2020 16:01:23 +0000 Subject: [PATCH] custom code - added "route" param --- packages/builder/src/builderStore/buildCodeForScreens.js | 2 +- packages/builder/src/userInterface/CodeEditor.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/builderStore/buildCodeForScreens.js b/packages/builder/src/builderStore/buildCodeForScreens.js index 037a85d0bb..69ef0d6e0b 100644 --- a/packages/builder/src/builderStore/buildCodeForScreens.js +++ b/packages/builder/src/builderStore/buildCodeForScreens.js @@ -27,7 +27,7 @@ export const buildCodeForScreens = screens => { } const buildComponentCode = componentProps => - `"${componentProps._id}" : (render, context, state, routeParams) => { + `"${componentProps._id}" : (render, context, state, route) => { ${componentProps._code} }, ` diff --git a/packages/builder/src/userInterface/CodeEditor.svelte b/packages/builder/src/userInterface/CodeEditor.svelte index 05072e8562..381e032480 100644 --- a/packages/builder/src/userInterface/CodeEditor.svelte +++ b/packages/builder/src/userInterface/CodeEditor.svelte @@ -65,7 +65,7 @@
- function(render, context, store) {'{'} + function(render, context, state, route) {'{'}