From 25b6e214dd6ae738187c5783c64c28bb47a8fa74 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Sat, 25 Feb 2023 00:54:15 +0900 Subject: [PATCH] fix align nodes on locked tab --- .../@node-red/editor-client/src/js/ui/view-tools.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view-tools.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view-tools.js index 5b2c95431..a35f8e04f 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/view-tools.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view-tools.js @@ -448,9 +448,9 @@ RED.view.tools = (function() { } function alignSelectionToEdge(direction) { - // if (RED.workspaces.isLocked()) { - // return - // } + if (RED.workspaces.isLocked()) { + return; + } var selection = RED.view.selection(); if (selection.nodes && selection.nodes.length > 1) {