fix: update tool mode toggle behavior in NodeToolbarComponent (#4554)
fix wrong behaviour in toogle Co-authored-by: Nadir J <31660040+NadirJ@users.noreply.github.com>
This commit is contained in:
parent
da833a566a
commit
ac540a0940
1 changed files with 1 additions and 1 deletions
|
|
@ -347,7 +347,7 @@ export default function NodeToolbarComponent({
|
||||||
const [toolMode, setToolMode] = useState(() => {
|
const [toolMode, setToolMode] = useState(() => {
|
||||||
// Check if tool mode is explicitly set on the node
|
// Check if tool mode is explicitly set on the node
|
||||||
const hasToolModeProperty = data.node?.tool_mode;
|
const hasToolModeProperty = data.node?.tool_mode;
|
||||||
if (hasToolModeProperty !== undefined) {
|
if (hasToolModeProperty) {
|
||||||
return hasToolModeProperty;
|
return hasToolModeProperty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue