fix: select action on connecting two state

This commit is contained in:
Shariq Ansari 2023-05-02 20:37:47 +05:30
parent b6aa76b7ef
commit 277c5e16d2

View file

@ -64,6 +64,7 @@ onConnect(edge => {
id: "action-" + frappe.utils.get_random(5),
type: "action",
position: { x: center_x, y: center_y },
selected: true,
data: {
action: "",
allowed: "All",
@ -104,6 +105,8 @@ onConnect(edge => {
y: node.position.y - node.dimensions.height / 2
};
stop();
node.selected = true;
store.workflow.selected = node;
store.ref_history.commit();
}
},