fix: workflow store agent strategy not up to date

This commit is contained in:
AkaraChen
2025-01-07 09:57:35 +08:00
parent 15f3e46c49
commit 0beebab605
5 changed files with 7 additions and 31 deletions

View File

@ -18,8 +18,8 @@ const nodeDefault: NodeDefault<AgentNodeType> = {
: ALL_COMPLETION_AVAILABLE_BLOCKS
},
checkValid(payload, t, moreDataForCheckValid: {
strategyProvider: StrategyPluginDetail | undefined,
strategy: StrategyDetail | undefined
strategyProvider?: StrategyPluginDetail,
strategy?: StrategyDetail
language: string
}) {
const { strategy, language } = moreDataForCheckValid

View File

@ -72,7 +72,6 @@ const useConfig = (id: string, payload: AgentNodeType) => {
inputs.agent_strategy_provider_name,
inputs.agent_strategy_name,
)
console.log('currentStrategyStatus', currentStrategyStatus)
const pluginId = inputs.agent_strategy_provider_name?.split('/').splice(0, 2).join('/')
const pluginDetail = useCheckInstalled({
pluginIds: [pluginId || ''],