fix: Navigate To & Other Actions broken

This commit is contained in:
Michael Shanks 2020-10-02 14:52:45 +01:00
parent 69a1361d11
commit dd31e19400
1 changed files with 4 additions and 0 deletions

View File

@ -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