fix: do not need to open the row after batch updating
This commit is contained in:
@@ -321,7 +321,6 @@ const Models: React.FC<ModelsProps> = ({
|
|||||||
replicas: 1
|
replicas: 1
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
updateExpandedRowKeys([row.id, ...expandedRowKeys]);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// ingore
|
// ingore
|
||||||
}
|
}
|
||||||
@@ -543,6 +542,7 @@ const Models: React.FC<ModelsProps> = ({
|
|||||||
if (val === 'start') {
|
if (val === 'start') {
|
||||||
await handleStartModel(row);
|
await handleStartModel(row);
|
||||||
message.success(intl.formatMessage({ id: 'common.message.success' }));
|
message.success(intl.formatMessage({ id: 'common.message.success' }));
|
||||||
|
updateExpandedRowKeys([row.id, ...expandedRowKeys]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (val === 'stop') {
|
if (val === 'stop') {
|
||||||
|
|||||||
Reference in New Issue
Block a user