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

View file

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