Skip to content

Commit

Permalink
fix: missing null check #389 (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexagon6 committed Dec 9, 2022
1 parent 8ae9b92 commit 62b3fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/histoire-plugin-svelte/src/client/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function cleanupState (state: Record<string, any>): Record<string, any> {
if (typeof value === 'function') continue
if (typeof value === 'undefined') continue
if (value instanceof HTMLElement) continue
if (typeof value === 'object' && value.$$) continue
if (typeof value === 'object' && value?.$$) continue
result[key] = value
}
return result
Expand Down

0 comments on commit 62b3fd5

Please sign in to comment.