Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #877 from Shinsina/correct-property-access
Browse files Browse the repository at this point in the history
Use proper accessing of `excludeContentIds`, Most Popular Block
  • Loading branch information
brandonbk authored Feb 21, 2024
2 parents 0dccfdd + d87a56a commit 7b22677
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $ const buildContentQuery = () => {
};
<marko-web-resolve|{ resolved }| promise=getMostPopular()>
$ const excludeContentIds = getAsArray(input, 'input.excludeContentIds');
$ const excludeContentIds = getAsArray(input, 'excludeContentIds');
$ const ids = excludeContentIds.length ? resolved.reduce(
(arr, { id }) => (!excludeContentIds.includes(id) ? [...arr, id] : arr), []
) : resolved.map(({ id }) => id);
Expand Down

0 comments on commit 7b22677

Please sign in to comment.