fix: do not collapse other models, after creating a new

This commit is contained in:
jialin
2024-12-12 14:12:33 +08:00
parent c2ae30575e
commit dde746a5fe
+1 -2
View File
@@ -323,13 +323,12 @@ const Models: React.FC<ModelsProps> = ({
..._.omit(data, result.omits)
}
});
console.log('modelData:', modelData);
setOpenDeployModal({
...openDeployModal,
show: false
});
setTimeout(() => {
updateExpandedRowKeys([modelData.id]);
updateExpandedRowKeys([modelData.id, ...expandedRowKeys]);
}, 300);
message.success(intl.formatMessage({ id: 'common.message.success' }));
} catch (error) {}