- refactor for multi-config suport done

- added better errror captures
This commit is contained in:
ari committed 2022-08-16 11:40:30 -04:00
1 parent 55ea1e23a4
commit c67d1bd32f
32 files changed
+991 -835

No files matched your search

+6 -6
View File
@@ -10,10 +10,10 @@ import { AutomationTrigger } from "types/automations/triggers";
import { AutomationCondition } from "types/automations/conditions";
export const DAGAutomationGraph: FC<{
sequence: AutomationSequenceNode[];
action: AutomationSequenceNode[];
trigger: AutomationTrigger[];
condition: AutomationCondition[];
onSequenceUpdate: (s: AutomationSequenceNode[]) => void;
onActionUpdate: (s: AutomationSequenceNode[]) => void;
onTriggerUpdate: (t: AutomationTrigger[]) => void;
onConditionUpdate: (c: AutomationCondition[]) => void;
isFlipped: boolean;
@@ -24,9 +24,9 @@ export const DAGAutomationGraph: FC<{
useState<ModalState | undefined>(undefined);
const updater = createUpdater({
openModal: setModalState,
sequence: {
data: props.sequence,
onUpdate: props.onSequenceUpdate,
action: {
data: props.action,
onUpdate: props.onActionUpdate,
},
condition: {
data: props.condition,
@@ -39,7 +39,7 @@ export const DAGAutomationGraph: FC<{
});
const elementData = useAutomationNodes(
{
sequence: props.sequence,
action: props.action,
condition: props.condition,
trigger: props.trigger,
},