Refactor BuildTrigger component imports and remove unused code

This commit is contained in:
anovazzi1 2024-01-23 18:43:10 -03:00
commit 30ecc997c9

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