From 6110a1f2778972e0114eedf559fa03dcf24ff76b Mon Sep 17 00:00:00 2001 From: anna condal Date: Thu, 6 Jun 2024 18:17:15 +0200 Subject: [PATCH] injectedListItems undefined as default in BaseGrid component (#1495) --- packages/x-components/src/components/base-grid.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/x-components/src/components/base-grid.vue b/packages/x-components/src/components/base-grid.vue index 3f58af7c02..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); + const injectedListItems = inject | undefined>( + LIST_ITEMS_KEY as string, + undefined + ); const gridEl = ref(null);