fix: state handling - should set active model to undefined if loaded fail
This commit is contained in:
parent
d7efd9813a
commit
89387c8a1b
@ -52,6 +52,7 @@ export function useActiveModel() {
|
||||
loading: false,
|
||||
model: modelId,
|
||||
}))
|
||||
setActiveModel(undefined)
|
||||
} else {
|
||||
console.debug(
|
||||
`Init model ${modelId} successfully!, take ${
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user