🐛 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 { ParameterComponentType } from "../../../../types/components";
|
||||||
import { TabsState } from "../../../../types/tabs";
|
import { TabsState } from "../../../../types/tabs";
|
||||||
import {
|
import {
|
||||||
|
convertObjToArray,
|
||||||
hasDuplicateKeys,
|
hasDuplicateKeys,
|
||||||
isValidConnection,
|
isValidConnection,
|
||||||
} from "../../../../utils/reactflowUtils";
|
} from "../../../../utils/reactflowUtils";
|
||||||
|
|
@ -384,7 +385,7 @@ export default function ParameterComponent({
|
||||||
data.node!.template[name].value?.length === 0 ||
|
data.node!.template[name].value?.length === 0 ||
|
||||||
!data.node!.template[name].value
|
!data.node!.template[name].value
|
||||||
? dictArr
|
? dictArr
|
||||||
: data.node!.template[name].value
|
: convertObjToArray(data.node!.template[name].value)
|
||||||
}
|
}
|
||||||
duplicateKey={errorDuplicateKey}
|
duplicateKey={errorDuplicateKey}
|
||||||
onChange={(newValue) => {
|
onChange={(newValue) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue