Skip to content

Commit

Permalink
feat(base-grid): set undefined as default val
Browse files Browse the repository at this point in the history
  • Loading branch information
annacv committed Jun 6, 2024
1 parent 1fdf042 commit 793e484
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/x-components/src/components/base-grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@
*
* @internal
*/
const injectedListItems = inject<Ref<ListItem[] | []>>(LIST_ITEMS_KEY as string, ref([]));
const injectedListItems = inject<Ref<ListItem[]> | undefined>(
LIST_ITEMS_KEY as string,
undefined
);
const gridEl = ref<ElementRef | HTMLElement | null>(null);
Expand Down

0 comments on commit 793e484

Please sign in to comment.