1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

delete node

This commit is contained in:
Fedor Katurov 2019-11-29 11:22:49 +07:00
parent 874aa2467a
commit 3c844e9b27

View file

@ -58,7 +58,11 @@ export function* updateNodeEverywhere(node) {
}
yield put(
flowSetNodes(flow_nodes.map(flow_node => (flow_node.id === node.id ? node : flow_node)))
flowSetNodes(
flow_nodes
.map(flow_node => (flow_node.id === node.id ? node : flow_node))
.filter(flow_node => !flow_node.deleted_at)
)
);
}