fix: add worker button do not work

This commit is contained in:
jialin
2025-12-18 10:56:45 +08:00
parent e4bd753355
commit b524587a9a
10 changed files with 62 additions and 26 deletions
@@ -64,17 +64,11 @@ const AddWorkerSteps: React.FC<AddWorkerProps> = (props) => {
const [collapseKey, setCollapseKey] = React.useState<Set<string>>(
new Set([stepList[0]])
);
const startWatchRef = React.useRef(false);
const { update, summary, register } = useSummaryStatus();
const { addedCount, createModelsChunkRequest } = useAddWorkerMessage({
startWatch: startWatchRef
});
const { addedCount, createModelsChunkRequest } = useAddWorkerMessage();
const onToggle = (open: boolean, key: string) => {
setCollapseKey(open ? new Set([key]) : new Set());
if (key === StepNamesMap.RunCommand && open) {
startWatchRef.current = true;
}
};
const handleOnClusterChange = (value: number, row?: any) => {