Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
apedroferreira committed Jun 12, 2023
1 parent a451c07 commit 8f6ac7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/toolpad-app/src/runtime/ToolpadApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
};
Expand Down

0 comments on commit 8f6ac7a

Please sign in to comment.