Skip to content

Commit

Permalink
Fixed typo in infinite scroll generation
Browse files Browse the repository at this point in the history
  • Loading branch information
EdNawrocki committed Nov 5, 2024
1 parent 2485984 commit f74a890
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layouts/Breaking/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ export default class BreakingLayout extends React.Component {

getPosts(page) {
fetch(
`${Config.apiUrl}/wp-json/wp/v2/posts?_embed&categories=${this.props.categoryID}&tag=${this.props.tagID}&page=${page}`
`${Config.apiUrl}/wp-json/wp/v2/posts?_embed&categories=27179&tags=${this.props.tagID}&page=${page}` //27179 is the category ID of breaking feed posts
)
.then(response => response.json())
.then(
json => {
if (json.data == undefined && json.length != 0) {
console.log(`${Config.apiUrl}/wp-json/wp/v2/posts?_embed&categories=27179&tags=${this.props.tagID}&page=${page}`);
this.setState({
otherArticleCards: this.state.otherArticleCards.concat(
utilities.buildArticleList(json, "breaking")
Expand Down

0 comments on commit f74a890

Please sign in to comment.