refactor(ui): clean code

This commit is contained in:
Fu Diwei
2024-12-09 17:48:44 +08:00
parent 588e89e8fe
commit 07a443f6c4
19 changed files with 57 additions and 88 deletions

View File

@@ -13,7 +13,7 @@ import WorkflowLog from "@/components/workflow/WorkflowLog";
import { cn } from "@/components/ui/utils";
import WorkflowProvider from "@/components/workflow/WorkflowProvider";
import { allNodesValidated, WorkflowNode } from "@/domain/workflow";
import { getErrMessage } from "@/lib/error";
import { getErrMsg } from "@/utils/error";
import { useWorkflowStore, WorkflowState } from "@/stores/workflow";
import { ArrowLeft } from "lucide-react";
import { useEffect, useMemo, useState } from "react";
@@ -128,7 +128,7 @@ const WorkflowDetail = () => {
} catch (e) {
toast({
title: t("workflow.detail.action.run.failed"),
description: getErrMessage(e),
description: getErrMsg(e),
variant: "destructive",
});
}