Fixed pinned attribute
This commit is contained in:
parent
020f43b9f6
commit
32d98c9b85
2 changed files with 5 additions and 3 deletions
|
|
@ -107,7 +107,7 @@ export default function GenericNode({
|
|||
}, [flowPool, data.id]);
|
||||
|
||||
const showNode = data.showNode ?? true;
|
||||
const pinned = data.pinned ?? true;
|
||||
const pinned = data.node?.pinned ?? true;
|
||||
|
||||
const nameEditable = data.node?.flow || data.type === "CustomComponent";
|
||||
|
||||
|
|
@ -327,7 +327,10 @@ export default function GenericNode({
|
|||
...old,
|
||||
data: {
|
||||
...old.data,
|
||||
pinned: old?.data?.pinned ? false : true,
|
||||
node: {
|
||||
...old.data.node,
|
||||
pinned: old.data?.node?.pinned ? false : true,
|
||||
}
|
||||
},
|
||||
}));
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ export type NodeType = {
|
|||
|
||||
export type NodeDataType = {
|
||||
showNode?: boolean;
|
||||
pinned?: boolean;
|
||||
type: string;
|
||||
node?: APIClassType;
|
||||
id: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue