mirror of https://github.com/langgenius/dify.git
fix(CI): fix CI errors
This commit is contained in:
parent
edd50420ec
commit
e1e95f7ccd
|
|
@ -77,7 +77,7 @@ const Splash: FC<PropsWithChildren> = ({ children }) => {
|
|||
setWebAppPassport(shareCode!, access_token)
|
||||
redirectOrFinish()
|
||||
}
|
||||
catch (error) {
|
||||
catch {
|
||||
await webAppLogout(shareCode!)
|
||||
proceedToAuth()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ const getTriggerIcon = (trigger: AppTrigger, triggerPlugins: any[]) => {
|
|||
|| triggerWithProvider.name === provider_name,
|
||||
)
|
||||
triggerIcon = foundTrigger?.icon
|
||||
console.log('triggerIcon', triggerIcon)
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue