fix: could not delete model (#1779)

This commit is contained in:
Louis 2024-01-25 19:52:54 +07:00 committed by GitHub
parent 917d69db37
commit c2310ed030
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -180,7 +180,7 @@ export default function RowModel(props: RowModelProps) {
)}
onClick={() => {
setTimeout(async () => {
if (serverEnabled) {
if (!serverEnabled) {
await stopModel()
deleteModel(props.data)
}