Skip to content

Commit

Permalink
records search: render Mathjax in the results list
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova authored and ntarocco committed Oct 2, 2024
1 parent 16d7687 commit 6d4d728
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import { Trans } from "react-i18next";
export const SearchResults = ({ paginationOptions, currentResultsState }) => {
const { total } = currentResultsState.data;

const handleResultsRendered = () => {
window.invenio?.onSearchResultsRendered();
};

return (
total && (
<Grid>
Expand All @@ -24,7 +28,7 @@ export const SearchResults = ({ paginationOptions, currentResultsState }) => {
<Grid>
<Grid.Row>
<Grid.Column>
<ResultsList />
<ResultsList onResultsRendered={handleResultsRendered} />
</Grid.Column>
</Grid.Row>
</Grid>
Expand Down

0 comments on commit 6d4d728

Please sign in to comment.