Skip to content

Commit

Permalink
Fix query-keys definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
atrincas committed Dec 12, 2024
1 parent 5dbfaf8 commit 7bb7d64
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions client/src/lib/query-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const tableKeys = createQueryKeys("tables", {

export const customProjectKeys = createQueryKeys("customProjects", {
countries: null,
one: (id: string) => [id],
assumptions: ({
ecosystem,
activity,
Expand Down Expand Up @@ -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,
);

0 comments on commit 7bb7d64

Please sign in to comment.