Skip to content

Commit

Permalink
fix: assign a default value to the inject
Browse files Browse the repository at this point in the history
  • Loading branch information
lauramargar committed May 13, 2024
1 parent 0a9be48 commit 6b1266b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function useFiltersInjection(props: {
*
* @public
*/
const injectedFilters = inject<Ref<Filter[]> | undefined>('filters');
const injectedFilters = inject<Ref<Filter[]> | undefined>('filters', undefined);

/**
* An array of filters formed by those that are passed through prop or injected.
Expand Down

0 comments on commit 6b1266b

Please sign in to comment.