Skip to content

Commit

Permalink
fix: mappings url
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Kühnlein committed Feb 2, 2024
1 parent 7984f76 commit 3280de7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/components/hooks/useGetMappingRecommendations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ export function useGetMappingRecommendations(
fallbackData?: DataMappingRecommendation[] | null
) {
const { data, error, isLoading } = useSWR(
importerId ? [`/api/importer/${importerId}/mapping/recommendations`] : null,
importerId
? [`/api/importer/${importerId}/mappings/recommendations`]
: null,
([url]) => fetch(url).then((res) => res.json()),
{
refreshInterval: pollInterval,
Expand Down

0 comments on commit 3280de7

Please sign in to comment.