Skip to content

Commit

Permalink
fix: add type to filters so changing filters doesn't override it
Browse files Browse the repository at this point in the history
  • Loading branch information
drodil committed Oct 31, 2024
1 parent de0fae5 commit f2cd96e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export type Filters = {
tags?: string[];
dateRange?: string;
collectionId?: number;
type?: PostType;
};

export interface FilterPanelProps {
Expand Down
1 change: 1 addition & 0 deletions plugins/qeta-react/src/hooks/usePaginatedPosts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function usePaginatedPosts(props: PaginatedPostsProps) {
tags: tags ?? [],
dateRange: '',
collectionId: props.collectionId,
type,
});

const onPageChange = (value: number) => {
Expand Down

0 comments on commit f2cd96e

Please sign in to comment.