fix: delay in updating model list

This commit is contained in:
jialin
2024-12-12 16:28:14 +08:00
parent dde746a5fe
commit 85949c5927
3 changed files with 11 additions and 20 deletions
@@ -406,9 +406,6 @@ const Models: React.FC<ModelsProps> = ({
name: row.name,
async onOk() {
await deleteModelInstance(row.id);
if (list.length === 1) {
removeExpandedRowKey([row.model_id]);
}
}
});
};