Skip to content

Commit

Permalink
don't await transformations twice
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetTechuila committed Feb 17, 2025
1 parent 1ea59f5 commit 96bad0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DocumentWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ export default class DocumentWatcher {
e.document,
e.reason,
)
e.waitUntil(transformations)
edits = await transformations
e.waitUntil(
transformations.then(transformations => (edits = transformations)),
)
editedDoc = activeDoc
}),
)
Expand Down

0 comments on commit 96bad0d

Please sign in to comment.