style: cluster advanced scroller
This commit is contained in:
@@ -89,6 +89,7 @@ const ClusterAdvanceConfig: React.FC<{
|
||||
}}
|
||||
schema={schema}
|
||||
></YamlEditor>
|
||||
<div className="scroller-to-holder" style={{ height: 1 }}></div>
|
||||
</>
|
||||
);
|
||||
});
|
||||
|
||||
@@ -116,8 +116,13 @@ const WorkerPoolsForm = forwardRef((props: WorkerPoolsFormProps, ref) => {
|
||||
form?.validateFields()
|
||||
);
|
||||
const results = await Promise.allSettled(promises);
|
||||
console.log('results========0', promises, results);
|
||||
if (results.some((result) => result.status === 'rejected')) {
|
||||
const rejectIndex = results.findIndex(
|
||||
(result) => result.status === 'rejected'
|
||||
);
|
||||
if (rejectIndex !== -1) {
|
||||
setActiveKey(() => {
|
||||
return new Set([rejectIndex]);
|
||||
});
|
||||
return Promise.reject({
|
||||
values: {
|
||||
worker_pools: gatherFormValues(results)
|
||||
|
||||
Reference in New Issue
Block a user