fix(CI): fix CI errors

This commit is contained in:
zhsama 2025-10-30 16:33:04 +08:00
parent edd50420ec
commit e1e95f7ccd
4 changed files with 6 additions and 5 deletions

View File

@ -77,7 +77,7 @@ const Splash: FC<PropsWithChildren> = ({ children }) => {
setWebAppPassport(shareCode!, access_token)
redirectOrFinish()
}
catch (error) {
catch {
await webAppLogout(shareCode!)
proceedToAuth()
}

View File

@ -67,7 +67,6 @@ const getTriggerIcon = (trigger: AppTrigger, triggerPlugins: any[]) => {
|| triggerWithProvider.name === provider_name,
)
triggerIcon = foundTrigger?.icon
console.log('triggerIcon', triggerIcon)
}
return (

View File

@ -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')

2
web/types/i18n.d.ts vendored
View File

@ -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;