Merge branch 'feat-dict' of https://github.com/logspace-ai/langflow into feat-dict

This commit is contained in:
Cristhian Zanforlin Lousa 2023-09-14 14:32:26 -03:00
commit dc2ff9a91c
4 changed files with 9 additions and 2 deletions

View file

@ -0,0 +1,3 @@
from .base import NestedDict
__all__ = ["NestedDict"]

View file

@ -0,0 +1,4 @@
from typing import Union, Dict
# Type alias for more complex dicts
NestedDict = Dict[str, Union[str, Dict]]

View file

@ -237,7 +237,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}