Skip to content

Commit bc0bfdf

Browse files
committed
fix #126
1 parent a3639a4 commit bc0bfdf

File tree

2 files changed

+1
-785
lines changed

2 files changed

+1
-785
lines changed

src/parsers/nomParsers/ViewFieldParsers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const viewFieldMathJS = P.manyNotOf('{}[]').describe('MathJS');
1010

1111
export const VIEW_FIELD_DECLARATION: Parser<(string | UnvalidatedBindTargetDeclaration)[]> = P.sequenceMap(
1212
(first, other) => {
13-
return [first, ...other.reduce<(UnvalidatedBindTargetDeclaration | string)[]>((acc, x) => acc.concat(x), [])];
13+
return [first, ...other.flat()];
1414
},
1515
viewFieldMathJS,
1616
P.sequence(BIND_TARGET.wrap(P.string('{'), P.string('}')), viewFieldMathJS).many()

0 commit comments

Comments
 (0)