Skip to content

Commit

Permalink
Merge pull request #549 from near/nearWeekNews-component-refactor
Browse files Browse the repository at this point in the history
refactor: Limit number of indexed Post in nearWeekNews
  • Loading branch information
erditkurteshiSQA authored Dec 6, 2023
2 parents a6398f7 + 589a206 commit 73ef216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/News/NearweekSidebarFeed.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const accountId = "near";
const limit = 5;
const limit = props.limit || 5;
let posts = [];

const indexedPosts = Social.index("post", "main", {
accountId,
limit: 20,
limit: limit,
order: "desc",
});

Expand Down

0 comments on commit 73ef216

Please sign in to comment.