Skip to content

Commit

Permalink
fix: state handling - should set active model to undefined if loaded …
Browse files Browse the repository at this point in the history
…fail
  • Loading branch information
louis-jan committed Nov 14, 2023
1 parent d7efd98 commit 89387c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/hooks/useActiveModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export function useActiveModel() {
loading: false,
model: modelId,
}))
setActiveModel(undefined)
} else {
console.debug(
`Init model ${modelId} successfully!, take ${
Expand Down

0 comments on commit 89387c8

Please sign in to comment.