diff --git a/packages/pinia/src/devtools/formatting.ts b/packages/pinia/src/devtools/formatting.ts index 4bebe303db..8c26e9a31e 100644 --- a/packages/pinia/src/devtools/formatting.ts +++ b/packages/pinia/src/devtools/formatting.ts @@ -159,7 +159,7 @@ export function formatStoreForInspectorState( })) } - if (store._customProperties.size) { + if (store._customProperties && store._customProperties.size) { state.customProperties = Array.from(store._customProperties).map((key) => ({ editable: true, key,