style: cluster advanced scroller

This commit is contained in:
jialin
2025-12-18 20:03:00 +08:00
parent e1b8b5696c
commit 14d944ad2f
5 changed files with 66 additions and 17 deletions
@@ -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)