From 0257b99007ae31100a04555e8feb69986e5c4666 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 16 Nov 2022 05:15:55 -0800 Subject: [PATCH] Unify API call with other collectioin pages --- pages/teams.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/teams.tsx b/pages/teams.tsx index 1f085bc1..28997106 100644 --- a/pages/teams.tsx +++ b/pages/teams.tsx @@ -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 {