fix: should not raise error for the non relevant model starting requests

This commit is contained in:
Louis 2023-11-21 17:11:35 +07:00
parent 081c37bc84
commit b5717e03fe

View File

@ -49,7 +49,7 @@ export function useActiveModel() {
console.debug('Init model: ', modelId)
const path = join('models', model.name, modelId)
const res = await initModel(path)
if (res?.error) {
if (res?.error && modelId === activeModel?.id) {
const errorMessage = `${res.error}`
alert(errorMessage)
setStateModel(() => ({