Skip to content

Commit

Permalink
Update lib/util/template/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
  • Loading branch information
rarkins and viceice committed Feb 21, 2022
1 parent 8ed8217 commit 71e5571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/template/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function getFilteredObject(input: CompileInput): FilteredObject {
const value = obj[field];
if (is.array(value)) {
res[field] = value
.filter(is.object)
.filter(is.plainObject)
.map((element) => getFilteredObject(element as CompileInput));
} else if (is.plainObject(value)) {
res[field] = getFilteredObject(value);
Expand Down

0 comments on commit 71e5571

Please sign in to comment.