fix(editor): Prevent setting sticky node as active node on new canvas (no-changelog) (#11141)

This commit is contained in:
Alex Grozav
2024-10-07 16:12:23 +03:00
committed by GitHub
parent 9539504eaf
commit 0321582c11
2 changed files with 22 additions and 4 deletions

View File

@@ -610,10 +610,10 @@ export function useCanvasOperations({ router }: { router: ReturnType<typeof useR
if (nodeData.type !== STICKY_NODE_TYPE) {
void externalHooks.run('nodeView.addNodeButton', { nodeTypeName: nodeData.type });
}
if (options.openNDV && !preventOpeningNDV) {
ndvStore.setActiveNodeName(nodeData.name);
if (options.openNDV && !preventOpeningNDV) {
ndvStore.setActiveNodeName(nodeData.name);
}
}
});