chore: app raises error when attempting to start a model that is already starting
This commit is contained in:
parent
ff01a6e7ed
commit
ec7703ec8d
@ -23,7 +23,10 @@ export function useActiveModel() {
|
||||
const { downloadedModels } = useGetDownloadedModels()
|
||||
|
||||
const startModel = async (modelId: string) => {
|
||||
if (activeModel && activeModel.id === modelId) {
|
||||
if (
|
||||
(activeModel && activeModel.id === modelId) ||
|
||||
(stateModel.model === modelId && stateModel.loading)
|
||||
) {
|
||||
console.debug(`Model ${modelId} is already init. Ignore..`)
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user