Merge branch 'feat-dict' of https://github.com/logspace-ai/langflow into feat-dict
This commit is contained in:
commit
dc2ff9a91c
4 changed files with 9 additions and 2 deletions
3
src/backend/langflow/field_typing/__init__.py
Normal file
3
src/backend/langflow/field_typing/__init__.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
from .base import NestedDict
|
||||
|
||||
__all__ = ["NestedDict"]
|
||||
4
src/backend/langflow/field_typing/base.py
Normal file
4
src/backend/langflow/field_typing/base.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
from typing import Union, Dict
|
||||
|
||||
# Type alias for more complex dicts
|
||||
NestedDict = Dict[str, Union[str, Dict]]
|
||||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue