🐛 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 { NodeDataType } from "../../types/flow";
|
||||
import { TabsState } from "../../types/tabs";
|
||||
import { hasDuplicateKeys } from "../../utils/reactflowUtils";
|
||||
import {
|
||||
convertObjToArray,
|
||||
hasDuplicateKeys,
|
||||
} from "../../utils/reactflowUtils";
|
||||
import { classNames } from "../../utils/utils";
|
||||
import BaseModal from "../baseModal";
|
||||
|
||||
|
|
@ -212,9 +215,11 @@ const EditNodeModal = forwardRef(
|
|||
!myData.node.template[templateParam]
|
||||
.value
|
||||
? dictArr
|
||||
: myData.node.template[
|
||||
templateParam
|
||||
].value
|
||||
: convertObjToArray(
|
||||
myData.node.template[
|
||||
templateParam
|
||||
].value
|
||||
)
|
||||
}
|
||||
duplicateKey={errorDuplicateKey}
|
||||
onChange={(newValue) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue