Skip to content

Commit

Permalink
UHF-8934: UHF-X: fix total results check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jussiles committed Sep 18, 2023
1 parent 8caa0d6 commit c8076fd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/js/news-archive.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/school-search.min.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import CardItem from '@/react/common/Card';
import type NewsItem from '../../types/NewsItem';
import CardImage from '@/react/common/CardImage';
import type NewsItem from '../../types/NewsItem';

const ResultCard = ({
alt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const ResultsContainer = () => {
useScrollToResults(scrollTarget, choices);

const hits = data?.hits?.hits;
const total = data?.hits.total.value || 0;
const total = data?.hits?.total?.value || 0;

const getResults = () => {
if (!data && !error) {
Expand Down

0 comments on commit c8076fd

Please sign in to comment.