diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx
index 81a821266..c5623d3fa 100644
--- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx
+++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx
@@ -241,7 +241,7 @@ export default function ParameterComponent({
!optionalHandle ? (
<>>
)
- : left === true && type === "str" ? (
+ : left === true && type === "dict" ? (
)
- : left === true && type === "dict" ? (
+ : left === true && type === "keypair" ? (
{
if (disabled) {
onChange([""]);
diff --git a/src/frontend/src/components/keypairListComponent/index.tsx b/src/frontend/src/components/keypairListComponent/index.tsx
index 87cad64d0..26e6d7f46 100644
--- a/src/frontend/src/components/keypairListComponent/index.tsx
+++ b/src/frontend/src/components/keypairListComponent/index.tsx
@@ -1,5 +1,5 @@
import { useEffect } from "react";
-import { KeyPairListComponent } from "../../types/components";
+import { KeyPairListComponentType } from "../../types/components";
import _ from "lodash";
import { TypeModal } from "../../constants/enums";
@@ -14,7 +14,7 @@ export default function KeypairListComponent({
disabled,
editNode = false,
duplicateKey
-}: KeyPairListComponent): JSX.Element {
+}: KeyPairListComponentType): JSX.Element {
useEffect(() => {
if (disabled) {
onChange([""]);
diff --git a/src/frontend/src/modals/EditNodeModal/index.tsx b/src/frontend/src/modals/EditNodeModal/index.tsx
index 85a149db8..437cdf232 100644
--- a/src/frontend/src/modals/EditNodeModal/index.tsx
+++ b/src/frontend/src/modals/EditNodeModal/index.tsx
@@ -206,7 +206,7 @@ const EditNodeModal = forwardRef(
/>
)
: myData.node?.template[templateParam]
- .type === "str" ? (
+ .type === "dict" ? (
)
: myData.node?.template[templateParam]
- .type === "dict" ? (
+ .type === "keypair" ? (
void;
disabled: boolean;
@@ -62,6 +62,13 @@ export type KeyPairListComponent = {
duplicateKey?: boolean;
};
+export type DictComponentType = {
+ value: any;
+ onChange: (value: string[]) => void;
+ disabled: boolean;
+ editNode?: boolean;
+};
+
export type TextAreaComponentType = {
field_name?: string;
nodeClass?: APIClassType;