Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder committed Jun 1, 2022
2 parents e1ef6ce + 23d21e1 commit 743fd59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nextapp/pages/devportal/api-directory/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
const queryClient = new QueryClient();
const queryKey = ['DiscoverableDataset', id];

!preview &&
preview === 'false' &&
(await queryClient.prefetchQuery(
queryKey,
async () => await restApi<ApiDataset>(`/ds/api/v2/directory/${id}`)
Expand All @@ -55,7 +55,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
id,
dehydratedState: dehydrate(queryClient),
queryKey,
preview: preview ? true : false,
preview: preview === 'true' ? true : false,
},
};
};
Expand Down

0 comments on commit 743fd59

Please sign in to comment.