1
0
Fork 0
mirror of synced 2024-09-30 17:18:14 +13:00

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

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