From 7bb7d642ea29c9e996837e8165a8d4000941f612 Mon Sep 17 00:00:00 2001 From: atrincas Date: Thu, 12 Dec 2024 15:52:47 +0100 Subject: [PATCH] Fix query-keys definitions --- client/src/lib/query-keys.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/src/lib/query-keys.ts b/client/src/lib/query-keys.ts index af9a013d..fcdcc635 100644 --- a/client/src/lib/query-keys.ts +++ b/client/src/lib/query-keys.ts @@ -45,6 +45,7 @@ export const tableKeys = createQueryKeys("tables", { export const customProjectKeys = createQueryKeys("customProjects", { countries: null, + one: (id: string) => [id], assumptions: ({ ecosystem, activity, @@ -72,16 +73,11 @@ export const customProjectKeys = createQueryKeys("customProjects", { }) => ["defaultActivityTypes", ecosystem, countryCode], }); -export const customProjectKeys = createQueryKeys("customProjects", { - one: (id: string) => [id], -}); - export const queryKeys = mergeQueryKeys( authKeys, userKeys, geometriesKeys, tableKeys, countriesKeys, - projectKeys, customProjectKeys, );