From 8f6ac7aa51bbc87287f54287fc4a0fc88450f73a Mon Sep 17 00:00:00 2001 From: Pedro Ferreira <10789765+apedroferreira@users.noreply.github.com> Date: Mon, 12 Jun 2023 19:57:22 +0100 Subject: [PATCH] More fixes --- packages/toolpad-app/src/runtime/ToolpadApp.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/toolpad-app/src/runtime/ToolpadApp.tsx b/packages/toolpad-app/src/runtime/ToolpadApp.tsx index 12379d58f2a..5ee90ae267c 100644 --- a/packages/toolpad-app/src/runtime/ToolpadApp.tsx +++ b/packages/toolpad-app/src/runtime/ToolpadApp.tsx @@ -369,7 +369,7 @@ function RenderedNodeContent({ node, childNodeGroups, Component }: RenderedNodeC const action = (node as appDom.ElementNode).props?.[key]; - if (action?.type === 'navigationAction') { + if (action?.$navigationAction) { const handler = async () => { const { page, parameters = {} } = action.value; if (page) { @@ -400,7 +400,7 @@ function RenderedNodeContent({ node, childNodeGroups, Component }: RenderedNodeC if (action?.$jsExpressionAction) { const handler = () => { - const code = action.value; + const code = action.$jsExpressionAction; const exprToEvaluate = `(async () => {${code}})()`; evaluatePageExpression(exprToEvaluate, scopeId, localScopeParams); };