🐛 fix(parameterComponent): convert object to array in data.node!.template[name].value to fix rendering issue
This commit is contained in:
parent
4a03e81314
commit
ddda46f6d6
1 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ import { typesContext } from "../../../../contexts/typesContext";
|
|||
import { ParameterComponentType } from "../../../../types/components";
|
||||
import { TabsState } from "../../../../types/tabs";
|
||||
import {
|
||||
convertObjToArray,
|
||||
hasDuplicateKeys,
|
||||
isValidConnection,
|
||||
} from "../../../../utils/reactflowUtils";
|
||||
|
|
@ -384,7 +385,7 @@ export default function ParameterComponent({
|
|||
data.node!.template[name].value?.length === 0 ||
|
||||
!data.node!.template[name].value
|
||||
? dictArr
|
||||
: data.node!.template[name].value
|
||||
: convertObjToArray(data.node!.template[name].value)
|
||||
}
|
||||
duplicateKey={errorDuplicateKey}
|
||||
onChange={(newValue) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue