Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit ac2ad1b

Browse files
committed
Fix precedence when omitting option converter.
1 parent 5fca480 commit ac2ad1b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Converter.re

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ let rec apply = (~converter, ~toJS, value) =>
167167
EmitText.parens([
168168
value
169169
++ " == null ? undefined : "
170-
++ value
171-
|> apply(~converter=c, ~toJS),
170+
++ (value |> apply(~converter=c, ~toJS)),
172171
]);
173172
}
174173

0 commit comments

Comments
 (0)