🐛 fix(parameterComponent): fix type comparison for "NestedDict" to improve accuracy and consistency

🐛 fix(EditNodeModal): fix type comparison for "NestedDict" to improve accuracy and consistency
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-14 14:09:06 -03:00
commit 70d9742d16
2 changed files with 2 additions and 2 deletions

View file

@ -244,7 +244,7 @@ export default function ParameterComponent({
type === "int") &&
!optionalHandle ? (
<></>
) : left === true && type === "nested_dict" ? (
) : left === true && type === "NestedDict" ? (
<div className="mt-2 w-full">
<DictComponent
disabled={disabled}

View file

@ -203,7 +203,7 @@ const EditNodeModal = forwardRef(
}}
/>
) : myData.node?.template[templateParam]
.type === "nested_dict" ? (
.type === "NestedDict" ? (
<div className="mt-2 w-full">
<DictComponent
disabled={disabled}