Merge branch 'cz/mergeAll' of https://github.com/langflow-ai/langflow into cz/mergeAll

This commit is contained in:
cristhianzl 2024-06-07 12:12:18 -03:00
commit 698ae4f296
11 changed files with 6 additions and 9 deletions

View file

@ -21,7 +21,6 @@ import {
LANGFLOW_SUPPORTED_TYPES,
TOOLTIP_EMPTY,
} from "../../../../constants/constants";
import OutputModal from "../../../../customNodes/genericNode/components/outputModal";
import { Case } from "../../../../shared/components/caseComponent";
import useFlowStore from "../../../../stores/flowStore";
import useFlowsManagerStore from "../../../../stores/flowsManagerStore";
@ -47,6 +46,7 @@ import useHandleNodeClass from "../../../hooks/use-handle-node-class";
import useHandleRefreshButtonPress from "../../../hooks/use-handle-refresh-buttons";
import TooltipRenderComponent from "../tooltipRenderComponent";
import { TEXT_FIELD_TYPES } from "./constants";
import OutputModal from "../outputModal";
export default function ParameterComponent({
left,
@ -430,7 +430,7 @@ export default function ParameterComponent({
});
}}
name={name}
data={data.node?.template[name]}
data={data.node?.template[name]!}
/>
</div>
{data.node?.template[name]?.refresh_button && (

View file

@ -12,8 +12,8 @@ import {
STATUS_BUILDING,
} from "../../constants/constants";
import { BuildStatus } from "../../constants/enums";
import { countHandlesFn } from "../../customNodes/helpers/count-handles";
import { getSpecificClassFromBuildStatus } from "../../customNodes/helpers/get-class-from-build-status";
import { countHandlesFn } from "../helpers/count-handles";
import { getSpecificClassFromBuildStatus } from "../helpers/get-class-from-build-status";
import NodeToolbarComponent from "../../pages/FlowPage/components/nodeToolbarComponent";
import useAlertStore from "../../stores/alertStore";
import { useDarkStore } from "../../stores/darkStore";

View file

@ -16,7 +16,6 @@ import { Input } from "../../../ui/input";
import useFileDrop from "../../hooks/use-on-file-drop";
type SideBarFoldersButtonsComponentProps = {
folders: FolderType[];
pathname: string;
handleChangeFolder?: (id: string) => void;
handleDeleteFolder?: (item: FolderType) => void;

View file

@ -44,10 +44,8 @@ export default function SidebarNav({
folders?.length > 0 &&
isFolderPath && (
<SideBarFoldersButtonsComponent
folders={folders}
pathname={pathname}
handleChangeFolder={handleChangeFolder}
handleEditFolder={handleEditFolder}
handleDeleteFolder={handleDeleteFolder}
/>
)

View file

@ -81,10 +81,10 @@ export type InputListComponentType = {
export type InputGlobalComponentType = {
disabled: boolean;
onChange: (value: string) => void;
onChange: (value: string, snapshot?: boolean) => void;
setDb: (value: boolean) => void;
name: string;
data: NodeDataType;
data: TemplateVariableType;
editNode?: boolean;
playgroundDisabled?: boolean;
};