Skip to content

Commit

Permalink
Hotfix/list of biographies (#25)
Browse files Browse the repository at this point in the history
In this pull request, we have addressed the filtering issue within the list of biographies. We've updated the tagging for 'Convoy stories,' now marking them with the "convoy" tag. Previously, there was a problem where newly added Convoy stories were mistakenly mixed with Biography stories in the list, as the filtering mechanism excluded only those stories tagged as 'static.'
  • Loading branch information
danieleguido authored Oct 11, 2023
1 parent 3a287bd commit 3a3bcb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/GenericIntersectionObserver.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const GenericIntersectionObserver = ({ onIntersect, delay = 500 }) => {
if (entry.isIntersecting) {
debounceTimer = setTimeout(() => {
onIntersect()
}, 500)
}, 250)
} else {
clearTimeout(debounceTimer)
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const Search = ({ limit = 5 }) => {
limit,
orderby: orderBy,
exclude: {
tags__slug: 'static',
tags__slug__in: ['static', 'convoy'],
},
...queryParams,
offset: limit * (pageParam - 1),
Expand Down Expand Up @@ -232,7 +232,7 @@ const Search = ({ limit = 5 }) => {
<ol>
{data?.pages.map((page, i) =>
page.results.map((story) => (
<li key={story.slug} className="mt-4">
<li key={i + '-' + story.slug} className="mt-4">
{/* <label className="small text-muted">
{i + 1} / {count}
</label> */}
Expand Down

0 comments on commit 3a3bcb4

Please sign in to comment.