From 8549369d48bcfe0167626c2a79bdfe94d4af25cf Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Fri, 2 Oct 2026 02:18:07 +0800 Subject: [PATCH] fix(ci): format pipeline extensions and plugin icon hook (#2623) --- .../pipeline-extensions/PipelineExtension.tsx | 10 +++++++++- web/src/app/infra/hooks/useInstalledPluginIcon.ts | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/web/src/app/home/pipelines/components/pipeline-extensions/PipelineExtension.tsx b/web/src/app/home/pipelines/components/pipeline-extensions/PipelineExtension.tsx index c6b98c027..feaa11057 100644 --- a/web/src/app/home/pipelines/components/pipeline-extensions/PipelineExtension.tsx +++ b/web/src/app/home/pipelines/components/pipeline-extensions/PipelineExtension.tsx @@ -12,7 +12,15 @@ import { DialogFooter, } from '@/components/ui/dialog'; import { Checkbox } from '@/components/ui/checkbox'; -import { CircleHelp, Plus, X, Server, Wrench, Sparkles, Puzzle } from 'lucide-react'; +import { + CircleHelp, + Plus, + X, + Server, + Wrench, + Sparkles, + Puzzle, +} from 'lucide-react'; import { Badge } from '@/components/ui/badge'; import { Switch } from '@/components/ui/switch'; import { Label } from '@/components/ui/label'; diff --git a/web/src/app/infra/hooks/useInstalledPluginIcon.ts b/web/src/app/infra/hooks/useInstalledPluginIcon.ts index 0d26a38c6..5d8fad696 100644 --- a/web/src/app/infra/hooks/useInstalledPluginIcon.ts +++ b/web/src/app/infra/hooks/useInstalledPluginIcon.ts @@ -56,8 +56,8 @@ export function useInstalledPluginIcon( marketplaceURL?: string | null, ): string | null { const key = author && name ? `${author}/${name}` : null; - const [url, setUrl] = useState(() => - marketplaceURL ?? (key ? iconCache.get(key)?.url ?? null : null), + const [url, setUrl] = useState( + () => marketplaceURL ?? (key ? (iconCache.get(key)?.url ?? null) : null), ); useEffect(() => {