Skip to content

Commit

Permalink
fix(client): add null-safety check when accessing pinia store state, c…
Browse files Browse the repository at this point in the history
…lose #707
  • Loading branch information
webfansplz committed Nov 27, 2024
1 parent 89127ac commit 2fd1be8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/applet/src/modules/pinia/components/store/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ function onInspectorStateUpdated(_data: string) {
return
const _state = data.state
if (!_state)
return
// @ts-expect-error skip type check
state.value = filterEmptyState({
Expand Down

0 comments on commit 2fd1be8

Please sign in to comment.