Skip to content

Commit

Permalink
Merge pull request #11 from davidhorm/fix/build
Browse files Browse the repository at this point in the history
Fix/build
  • Loading branch information
davidhorm authored Apr 3, 2023
2 parents dce57c7 + aa0a6ea commit b77b739
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"test:unit": "vitest",
"test:e2e": "pnpm dlx playwright test",
"codegen": "concurrently --kill-others \"vite\" \"pnpm dlx playwright codegen\"",
"predeploy": "pnpm run build",
"deploy": "gh-pages -d dist"
"predeploy": "pnpm test && pnpm dlx rimraf ./dist && pnpm run build",
"deploy": "pnpm run predeploy && gh-pages -d dist"
},
"dependencies": {
"@emotion/react": "^11.10.5",
Expand Down
2 changes: 1 addition & 1 deletion src/services/filter-sort-services/useCollectionFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ type Props = Partial<{
isInitialSortStateEmpty: boolean;
}>;

export const useCollectionFilters = (props: Props) => {
export const useCollectionFilters = (props?: Props) => {
const [filterState, filterDispatch] = useReducer(reducer, initialFilterState);

const initialSortState = props?.isInitialSortStateEmpty
Expand Down
1 change: 1 addition & 0 deletions src/services/filter-sort-services/username.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export const usernameService: FilterControl<string> = {
getReducedState: (state, username) => ({ ...state, username }),
setQueryParam: (searchParams, state) =>
searchParams.set(QUERY_PARAM_USERNAME, state.username),
applyFilters: () => (notUsed) => notUsed,
};

0 comments on commit b77b739

Please sign in to comment.