From 793e4844ec40cd6bc2f0bc1ea4d1f62708fbe64e Mon Sep 17 00:00:00 2001 From: acondal Date: Thu, 6 Jun 2024 16:49:45 +0200 Subject: [PATCH] feat(base-grid): set undefined as default val --- 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 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);