fix: can not start model when server is not enabled from model settings page (#1774)

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

View File

@ -56,10 +56,8 @@ export default function RowModel(props: RowModelProps) {
stopModel()
window.core?.api?.stopServer()
setServerEnabled(false)
} else {
if (serverEnabled) {
startModel(modelId)
}
} else if (!serverEnabled) {
startModel(modelId)
}
}