Skip to content

Commit f79ba42

Browse files
committed
Proposed fix
1 parent 4256230 commit f79ba42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/language/visitor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export function visit(root, visitor, keyMap) {
254254
} while (stack !== undefined);
255255

256256
if (edits.length !== 0) {
257-
newRoot = edits[0][1];
257+
newRoot = edits[edits.length - 1][1];
258258
}
259259

260260
return newRoot;

0 commit comments

Comments
 (0)