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,
|
loading: false,
|
||||||
model: modelId,
|
model: modelId,
|
||||||
}))
|
}))
|
||||||
|
setActiveModel(undefined)
|
||||||
} else {
|
} else {
|
||||||
console.debug(
|
console.debug(
|
||||||
`Init model ${modelId} successfully!, take ${
|
`Init model ${modelId} successfully!, take ${
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user