mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 01:18:05 +08:00
fix: workflow store agent strategy not up to date
This commit is contained in:
@ -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
|
||||
|
||||
@ -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 || ''],
|
||||
|
||||
Reference in New Issue
Block a user