Skip to content

Commit

Permalink
fix reduce types
Browse files Browse the repository at this point in the history
  • Loading branch information
peluja1012 committed Jul 12, 2020
1 parent 588cbd2 commit 6d4e4f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,14 @@ export const buildQueryExceptions = ({
exclude?: boolean;
}): DataQuery[] => {
if (lists != null) {
const exceptions = lists.reduce((acc, exceptionItem) => {
const exceptions = lists.reduce<string[]>((acc, exceptionItem) => {
return [
...acc,
...(exceptionItem.entries !== undefined
? [buildExceptionItemEntries({ lists: exceptionItem.entries, language, exclude })]
: []),
];
}, [] as string[]);
}, []);
const formattedQuery = formatQuery({ exceptions, language, query });
return [
{
Expand Down

0 comments on commit 6d4e4f1

Please sign in to comment.