refactor: only show group/node panel when selected

This commit is contained in:
2026-05-04 23:47:03 +02:00
parent 106797de32
commit 83e0e47082
6 changed files with 94 additions and 110 deletions
@@ -10,10 +10,8 @@
const { manager, node = $bindable() }: Props = $props();
const activeGroup = $derived.by(() => {
console.log('isInsideGroup', manager?.isInsideGroup);
if (manager?.isInsideGroup) {
const activeGroupId = manager.graphStack?.at(-1)?.groupId;
console.log('activeGroupId', activeGroupId);
if (activeGroupId !== undefined) {
return manager.getGroup(activeGroupId);
}