Skip to content

Commit

Permalink
go to start position when updating PGN
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Feb 15, 2024
1 parent 03ee31f commit 5f3c9ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/panels/info/PgnInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function PgnInput() {
async function updatePgn() {
const tree = await parsePGN(tmp);
tree.dirty = true;
tree.position = position;
tree.position = [];

if (deepEqual(tree.root, root) && deepEqual(tree.headers, headers)) {
setTmp(pgn);
Expand Down

0 comments on commit 5f3c9ce

Please sign in to comment.