From dd31e194002c88451d7401b44121559a12c8e368 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Fri, 2 Oct 2020 14:52:45 +0100 Subject: [PATCH] fix: Navigate To & Other Actions broken --- packages/client/src/state/eventHandlers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/client/src/state/eventHandlers.js b/packages/client/src/state/eventHandlers.js index 788ebf857f..05d8ef2fa3 100644 --- a/packages/client/src/state/eventHandlers.js +++ b/packages/client/src/state/eventHandlers.js @@ -1,3 +1,4 @@ +import api from "../api" import renderTemplateString from "./renderTemplateString" export const EVENT_TYPE_MEMBER_NAME = "##eventHandlerType" @@ -5,6 +6,9 @@ export const EVENT_TYPE_MEMBER_NAME = "##eventHandlerType" export const eventHandlers = routeTo => { const handlers = { "Navigate To": param => routeTo(param && param.url), + "Create Record": api.createRecord, + "Update Record": api.updateRecord, + "Trigger Workflow": api.triggerWorkflow, } // when an event is called, this is what gets run