Refactor BuildTrigger component imports and remove unused code
This commit is contained in:
parent
fccbbc8b1d
commit
30ecc997c9
1 changed files with 1 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue