Unify API call with other collectioin pages

This commit is contained in:
Justin Edmund 2022-11-16 05:15:55 -08:00
parent 86656e1bff
commit 0257b99007

View file

@ -385,7 +385,8 @@ export const getServerSideProps = async ({ req, res, locale, query }: { req: Nex
// Fetch initial set of parties here
const response = await api.endpoints.parties.getAll({
params: { ...filters, ...{ headers: headers } },
params: filters,
...headers
})
return {