jellyflow-runtime 0.1.0

Headless store, rules, schema, profile, and change pipeline for Jellyflow.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::super::NodeGraphLookups;
use jellyflow_core::core::{GroupId, NodeId};

impl NodeGraphLookups {
    pub(super) fn apply_remove_group(&mut self, detached: &[(NodeId, Option<GroupId>)]) -> bool {
        for (node_id, _previous_parent) in detached {
            if let Some(n) = self.node_lookup.get_mut(node_id) {
                n.parent = None;
            }
        }
        true
    }
}