Skip to content

Commit

Permalink
error log
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyichen committed Dec 13, 2024
1 parent 5165644 commit 74fe5fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/ResultList/SimpleResultList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { useGetExportCitation } from '@/api/export/export';
import { useSettings } from '@/lib/useSettings';
import { ExportApiFormatKey } from '@/api/export/types';
import { exportFormats } from '../CitationExporter';
import { logger } from '@/logger';

export interface ISimpleResultListProps extends HTMLAttributes<HTMLDivElement> {
docs: IDocsEntity[];
Expand Down Expand Up @@ -67,11 +68,11 @@ export const SimpleResultList = (props: ISimpleResultListProps): ReactElement =>
citationSet.set(bibcodes[index], c);
});
}
} catch {
defaultCitations.clear();
} catch (err) {
logger.error({ err }, 'Error processing citation data');
}
return citationSet;
}, [citationData]);
}, [citationData, bibcodes]);

return (
<Flex
Expand Down

0 comments on commit 74fe5fb

Please sign in to comment.