diff --git a/packages/histoire-plugin-svelte/src/client/util.ts b/packages/histoire-plugin-svelte/src/client/util.ts index 9a715e5a..42f8e680 100644 --- a/packages/histoire-plugin-svelte/src/client/util.ts +++ b/packages/histoire-plugin-svelte/src/client/util.ts @@ -9,7 +9,7 @@ function cleanupState (state: Record): Record { 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