From eb633f884979e362acc2790311da12f3b8ede1fc Mon Sep 17 00:00:00 2001 From: Typer_Body Date: Thu, 2 Apr 2026 01:38:21 +0800 Subject: [PATCH] fix: format BotForm.tsx with prettier --- .../home/bots/components/bot-form/BotForm.tsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 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 7d2d298a..aa803d24 100644 --- a/web/src/app/home/bots/components/bot-form/BotForm.tsx +++ b/web/src/app/home/bots/components/bot-form/BotForm.tsx @@ -13,7 +13,11 @@ 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, PipelineRoutingRule, RoutingRuleOperator } from '@/app/infra/entities/api'; +import { + Bot, + PipelineRoutingRule, + RoutingRuleOperator, +} from '@/app/infra/entities/api'; import { getAdapterDocUrl } from '@/app/infra/entities/adapter-docs'; import { ExternalLink, Plus, Trash2 } from 'lucide-react'; @@ -586,8 +590,7 @@ export default function BotForm({ ...(form.getValues('pipeline_routing_rules') || []), ]; - const newType = - val as PipelineRoutingRule['type']; + const newType = val as PipelineRoutingRule['type']; // Reset operator to 'eq' when switching type rules[index] = { ...rules[index], @@ -651,9 +654,8 @@ export default function BotForm({ value={rule.value} onValueChange={(val) => { const rules = [ - ...(form.getValues( - 'pipeline_routing_rules', - ) || []), + ...(form.getValues('pipeline_routing_rules') || + []), ]; rules[index] = { ...rules[index], value: val }; form.setValue('pipeline_routing_rules', rules, { @@ -688,9 +690,8 @@ export default function BotForm({ value={rule.value} onChange={(e) => { const rules = [ - ...(form.getValues( - 'pipeline_routing_rules', - ) || []), + ...(form.getValues('pipeline_routing_rules') || + []), ]; rules[index] = { ...rules[index],