diff --git a/packages/interactivity/src/proxies/store.ts b/packages/interactivity/src/proxies/store.ts index 70f6a6ce1c3b2f..5febd75ab9b578 100644 --- a/packages/interactivity/src/proxies/store.ts +++ b/packages/interactivity/src/proxies/store.ts @@ -49,7 +49,7 @@ export const getStoreProxy = < T extends object >( isRoot = false ) => { const proxy = getProxy( obj, storeHandlers, namespace ); - if ( isRoot ) { + if ( proxy && isRoot ) { storeRoots.add( proxy ); } return proxy;