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

Commit

Permalink
Access directly off of input
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinsina committed Feb 21, 2024
1 parent 0dccfdd commit d87a56a
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 d87a56a

Please sign in to comment.