Skip to content

Commit

Permalink
feat(base-grid): return [] as default
Browse files Browse the repository at this point in the history
  • Loading branch information
annacv committed May 30, 2024
1 parent 89850fa commit 89db1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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,7 @@
*
* @internal
*/
const injectedListItems = inject<Ref<ListItem[]>>(LIST_ITEMS_KEY as string);
const injectedListItems = inject<Ref<ListItem[]> | []>(LIST_ITEMS_KEY as string, []);
const gridEl = ref<ElementRef | HTMLElement | null>(null);
Expand Down

0 comments on commit 89db1ff

Please sign in to comment.