Skip to content

Commit

Permalink
Merge pull request #344 from shinyichen/SCIX-300-citation-error
Browse files Browse the repository at this point in the history
fix loading error in citation page
  • Loading branch information
shinyichen authored Nov 3, 2023
2 parents b9ea756 + a72cbe1 commit 7ede255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/abs/[id]/citations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ const CitationsPage: NextPage<ICitationsPageProps> = (props: ICitationsPageProps
const { id, error } = props;

const doc = useGetAbstractDoc(id);
const { getParams, onPageChange } = useGetAbstractParams(doc.bibcode);
const { getParams, onPageChange } = useGetAbstractParams(doc?.bibcode);

// get the primary response from server (or cache)
const { data, isSuccess } = useGetCitations(getParams(), { keepPreviousData: true });
const citationsParams = getCitationsParams(doc.bibcode, 0);
const citationsParams = getCitationsParams(doc?.bibcode, 0);
const title = unwrapStringValue(doc?.title);

return (
Expand Down

0 comments on commit 7ede255

Please sign in to comment.