🐛 fix(EditNodeModal/index.tsx): import convertObjToArray function from reactflowUtils to fix undefined reference error
🐛 fix(EditNodeModal/index.tsx): fix incorrect usage of convertObjToArray function to correctly convert object to array
This commit is contained in:
parent
0838baa50a
commit
46601245e1
1 changed files with 9 additions and 4 deletions
|
|
@ -28,7 +28,10 @@ import { TabsContext } from "../../contexts/tabsContext";
|
||||||
import { typesContext } from "../../contexts/typesContext";
|
import { typesContext } from "../../contexts/typesContext";
|
||||||
import { NodeDataType } from "../../types/flow";
|
import { NodeDataType } from "../../types/flow";
|
||||||
import { TabsState } from "../../types/tabs";
|
import { TabsState } from "../../types/tabs";
|
||||||
import { hasDuplicateKeys } from "../../utils/reactflowUtils";
|
import {
|
||||||
|
convertObjToArray,
|
||||||
|
hasDuplicateKeys,
|
||||||
|
} from "../../utils/reactflowUtils";
|
||||||
import { classNames } from "../../utils/utils";
|
import { classNames } from "../../utils/utils";
|
||||||
import BaseModal from "../baseModal";
|
import BaseModal from "../baseModal";
|
||||||
|
|
||||||
|
|
@ -212,9 +215,11 @@ const EditNodeModal = forwardRef(
|
||||||
!myData.node.template[templateParam]
|
!myData.node.template[templateParam]
|
||||||
.value
|
.value
|
||||||
? dictArr
|
? dictArr
|
||||||
: myData.node.template[
|
: convertObjToArray(
|
||||||
templateParam
|
myData.node.template[
|
||||||
].value
|
templateParam
|
||||||
|
].value
|
||||||
|
)
|
||||||
}
|
}
|
||||||
duplicateKey={errorDuplicateKey}
|
duplicateKey={errorDuplicateKey}
|
||||||
onChange={(newValue) => {
|
onChange={(newValue) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue