diff --git a/packages/x-components/src/components/base-grid.vue b/packages/x-components/src/components/base-grid.vue index 90b6c684a4..1d4a096948 100644 --- a/packages/x-components/src/components/base-grid.vue +++ b/packages/x-components/src/components/base-grid.vue @@ -114,7 +114,10 @@ * * @internal */ - const injectedListItems = inject>(LIST_ITEMS_KEY as string, ref([])); + const injectedListItems = inject | undefined>( + LIST_ITEMS_KEY as string, + undefined + ); const gridEl = ref(null);