From 627de5c8d322621d67839f8bed3f52596fd3f6c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20van=20den=20=F0=9F=94=9A?= Date: Tue, 15 Jul 2025 14:11:32 +0200 Subject: [PATCH] fix: can't access property "size", store._customProperties is undefined --- packages/pinia/src/devtools/formatting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,