Skip to content

Commit bd76934

Browse files
committed
fix: delete worker pool
1 parent bb793a4 commit bd76934

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/cluster-management/step-forms/worker-pools-form.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ const WorkerPoolsForm = forwardRef((props: WorkerPoolsFormProps, ref) => {
9595
newList.delete(id);
9696
return newList;
9797
});
98-
formRefs.current[id] = null;
98+
const { [id]: _, ...rest } = formRefs.current;
99+
formRefs.current = rest;
99100
};
100101

101102
const gatherFormValues = (results: PromiseSettledResult<any>[]) => {

0 commit comments

Comments
 (0)