Merge branch 'zustand/io/migration' of github.com:logspace-ai/langflow into zustand/io/migration

This commit is contained in:
igorrCarvalho 2024-01-23 18:45:11 -03:00
commit f075104f8a
2 changed files with 2 additions and 6 deletions

View file

@ -1,11 +1,9 @@
import { Transition } from "@headlessui/react";
import { useState } from "react";
import Loading from "../../../components/ui/loading";
import { postBuildInit } from "../../../controllers/API";
import { FlowType } from "../../../types/flow";
import useAlertStore from "../../../stores/alertStore";
import useFlowStore from "../../../stores/flowStore";
import { parsedDataType } from "../../../types/components";
import { FlowType } from "../../../types/flow";
import { validateNodes } from "../../../utils/reactflowUtils";
import RadialProgressComponent from "../../RadialProgress";
import IconComponent from "../../genericIconComponent";
@ -45,7 +43,6 @@ export default function BuildTrigger({
const startTime = Date.now();
setIsBuilding(true);
await enforceMinimumLoadingTime(startTime, minimumLoadingTime);
} catch (error) {
console.error("Error:", error);
@ -54,8 +51,6 @@ export default function BuildTrigger({
}
}
async function enforceMinimumLoadingTime(
startTime: number,
minimumLoadingTime: number

View file

@ -8,6 +8,7 @@ export type FlowType = {
description: string;
style?: FlowStyleType;
is_component?: boolean;
last_tested_version?: string;
};
export type NodeType = {