From e1e95f7ccde6fadc226cd48a3dfe5eed90fdb885 Mon Sep 17 00:00:00 2001 From: zhsama Date: Thu, 30 Oct 2025 16:33:04 +0800 Subject: [PATCH] fix(CI): fix CI errors --- web/app/(shareLayout)/components/splash.tsx | 2 +- web/app/components/app/overview/trigger-card.tsx | 1 - .../form/components/field/variable-or-constant-input.tsx | 6 +++--- web/types/i18n.d.ts | 2 ++ 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/web/app/(shareLayout)/components/splash.tsx b/web/app/(shareLayout)/components/splash.tsx index c30ad68950..eb9538e49b 100644 --- a/web/app/(shareLayout)/components/splash.tsx +++ b/web/app/(shareLayout)/components/splash.tsx @@ -77,7 +77,7 @@ const Splash: FC = ({ children }) => { setWebAppPassport(shareCode!, access_token) redirectOrFinish() } - catch (error) { + catch { await webAppLogout(shareCode!) proceedToAuth() } diff --git a/web/app/components/app/overview/trigger-card.tsx b/web/app/components/app/overview/trigger-card.tsx index 8946bdc0a5..5a0e387ba2 100644 --- a/web/app/components/app/overview/trigger-card.tsx +++ b/web/app/components/app/overview/trigger-card.tsx @@ -67,7 +67,6 @@ const getTriggerIcon = (trigger: AppTrigger, triggerPlugins: any[]) => { || triggerWithProvider.name === provider_name, ) triggerIcon = foundTrigger?.icon - console.log('triggerIcon', triggerIcon) } return ( diff --git a/web/app/components/base/form/components/field/variable-or-constant-input.tsx b/web/app/components/base/form/components/field/variable-or-constant-input.tsx index a07e356fa2..b8a96c5401 100644 --- a/web/app/components/base/form/components/field/variable-or-constant-input.tsx +++ b/web/app/components/base/form/components/field/variable-or-constant-input.tsx @@ -1,5 +1,5 @@ import type { ChangeEvent } from 'react' -import { useState } from 'react' +import { useCallback, useState } from 'react' import { RiEditLine } from '@remixicon/react' import cn from '@/utils/classnames' import SegmentedControl from '@/app/components/base/segmented-control' @@ -33,9 +33,9 @@ const VariableOrConstantInputField = ({ }, ] - const handleVariableOrConstantChange = (value: string) => { + const handleVariableOrConstantChange = useCallback((value: string) => { setVariableType(value) - } + }, [setVariableType]) const handleVariableValueChange = () => { console.log('Variable value changed') diff --git a/web/types/i18n.d.ts b/web/types/i18n.d.ts index a6ed8f0a1e..826fcc1613 100644 --- a/web/types/i18n.d.ts +++ b/web/types/i18n.d.ts @@ -27,6 +27,7 @@ type LoginMessages = typeof import('../i18n/en-US/login').default type OauthMessages = typeof import('../i18n/en-US/oauth').default type PipelineMessages = typeof import('../i18n/en-US/pipeline').default type PluginTagsMessages = typeof import('../i18n/en-US/plugin-tags').default +type PluginTriggerMessages = typeof import('../i18n/en-US/plugin-trigger').default type PluginMessages = typeof import('../i18n/en-US/plugin').default type RegisterMessages = typeof import('../i18n/en-US/register').default type RunLogMessages = typeof import('../i18n/en-US/run-log').default @@ -59,6 +60,7 @@ export type Messages = { oauth: OauthMessages; pipeline: PipelineMessages; pluginTags: PluginTagsMessages; + pluginTrigger: PluginTriggerMessages; plugin: PluginMessages; register: RegisterMessages; runLog: RunLogMessages;