From 20c017a9096b9c02843026185c0f786e683371c9 Mon Sep 17 00:00:00 2001 From: Benjamin Weder Date: Mon, 28 Aug 2023 18:25:07 +0200 Subject: [PATCH] Fix lint error --- .../modeler-component/editor/events/EditorEventHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bpmn-q/modeler-component/editor/events/EditorEventHandler.js b/components/bpmn-q/modeler-component/editor/events/EditorEventHandler.js index 710c9d52..ebda19e0 100644 --- a/components/bpmn-q/modeler-component/editor/events/EditorEventHandler.js +++ b/components/bpmn-q/modeler-component/editor/events/EditorEventHandler.js @@ -31,7 +31,7 @@ export function dispatchWorkflowEvent(type, workflowXml, workflowName) { }, cancelable: true, }); - return modelerComponent.dispatchEvent(newEvent); + return modelerComponent?.dispatchEvent?.(newEvent) ?? true; } /**