Skip to content

Commit

Permalink
fix: change list to map
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-Torrent committed Jun 27, 2022
1 parent 5938805 commit c484e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default (queryConfig: QueryClientConfig) => {
useQuery({
queryKey: PLANS_KEY,
queryFn: () =>
Api.getPlan({ planId }, queryConfig).then((data) => List(data)),
Api.getPlan({ planId }, queryConfig).then((data) => Map(data)),
...defaultOptions,
});

Expand Down

0 comments on commit c484e77

Please sign in to comment.