refactor: Update index type in ParameterComponentType

This commit is contained in:
ogabrielluiz 2024-06-14 17:00:09 -03:00
commit bff50ad3c5
2 changed files with 3 additions and 3 deletions

View file

@ -468,7 +468,7 @@ export default function GenericNode({
!data.node!.template[templateField]?.advanced && (
<ParameterComponent
selected={selected}
index={idx.toString()}
index={idx}
key={scapedJSONStringfy({
inputTypes:
data.node!.template[templateField].input_types,
@ -729,7 +729,7 @@ export default function GenericNode({
!data.node!.template[templateField]?.advanced ? (
<ParameterComponent
selected={selected}
index={idx.toString()}
index={idx}
key={scapedJSONStringfy({
inputTypes:
data.node!.template[templateField].input_types,

View file

@ -75,7 +75,7 @@ export type ParameterComponentType = {
info?: string;
proxy?: { field: string; id: string };
showNode?: boolean;
index?: string;
index: number;
onCloseModal?: (close: boolean) => void;
outputName?: string;
outputProxy?: OutputFieldProxyType;