From 6af837bafc0d97032a38eaf8f7859944b7681fd0 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Fri, 9 May 2025 11:32:33 +0800 Subject: [PATCH] fix: linter in BotForm --- web/src/app/home/bots/components/bot-form/BotForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/app/home/bots/components/bot-form/BotForm.tsx b/web/src/app/home/bots/components/bot-form/BotForm.tsx index d7332492..50562a2e 100644 --- a/web/src/app/home/bots/components/bot-form/BotForm.tsx +++ b/web/src/app/home/bots/components/bot-form/BotForm.tsx @@ -9,7 +9,7 @@ import { IDynamicFormItemSchema } from '@/app/infra/entities/form/dynamic'; import { UUID } from 'uuidjs'; import DynamicFormComponent from '@/app/home/components/dynamic-form/DynamicFormComponent'; import { httpClient } from '@/app/infra/http/HttpClient'; -import { Bot } from '@/app/infra/api/api-types'; +import { Bot } from '@/app/infra/entities/api'; import { zodResolver } from "@hookform/resolvers/zod" import { useForm } from "react-hook-form" @@ -130,7 +130,7 @@ export default function BotForm({ pipelinesRes.pipelines.map((item) => { return { label: item.name, - value: item.uuid, + value: item.uuid ?? '', }; }), );