minor fix: fix default for status of TidbAuthBinding in compatible with various versions (#22288)
This commit is contained in:
@@ -190,7 +190,6 @@ export const Workflow: FC<WorkflowProps> = memo(({
|
||||
return () => {
|
||||
handleSyncWorkflowDraft(true, true)
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [])
|
||||
|
||||
const { handleRefreshWorkflowDraft } = useWorkflowRefreshDraft()
|
||||
@@ -282,7 +281,6 @@ export const Workflow: FC<WorkflowProps> = memo(({
|
||||
const { fetchInspectVars } = useSetWorkflowVarsWithValue()
|
||||
useEffect(() => {
|
||||
fetchInspectVars()
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [])
|
||||
|
||||
const store = useStoreApi()
|
||||
|
@@ -143,7 +143,6 @@ export const AgentStrategySelector = memo((props: AgentStrategySelectorProps) =>
|
||||
category: PluginType.agent,
|
||||
})
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [query])
|
||||
|
||||
const pluginRef = useRef<ListRef>(null)
|
||||
|
@@ -151,7 +151,6 @@ const useConfig = (id: string, payload: AgentNodeType) => {
|
||||
return
|
||||
const newData = formattingLegacyData()
|
||||
setInputs(newData)
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [currentStrategy])
|
||||
|
||||
// vars
|
||||
|
@@ -101,7 +101,6 @@ const useConfig = (id: string, payload: LLMNodeType) => {
|
||||
})
|
||||
setInputs(newInputs)
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [defaultConfig, isChatModel])
|
||||
|
||||
const [modelChanged, setModelChanged] = useState(false)
|
||||
@@ -161,7 +160,6 @@ const useConfig = (id: string, payload: LLMNodeType) => {
|
||||
return
|
||||
setModelChanged(false)
|
||||
handleVisionConfigAfterModelChanged()
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [isVisionModel, modelChanged])
|
||||
|
||||
// variables
|
||||
|
@@ -447,6 +447,6 @@ export enum VersionHistoryContextMenuOptions {
|
||||
delete = 'delete',
|
||||
}
|
||||
|
||||
export interface ChildNodeTypeCount {
|
||||
export type ChildNodeTypeCount = {
|
||||
[key: string]: number;
|
||||
}
|
||||
|
Reference in New Issue
Block a user