Skip to content

Commit 668d62f

Browse files
webzwo0irhansen
authored andcommitted
importHtml: avoid race when applying empty document and the import changeset at the same time
1 parent 8eb5640 commit 668d62f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/node/utils/ImportHtml.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ exports.setPadHTML = async (pad, html) => {
9494
const theChangeset = builder.toString();
9595

9696
apiLogger.debug(`The changeset: ${theChangeset}`);
97-
await Promise.all([
98-
pad.setText('\n'),
99-
pad.appendRevision(theChangeset),
100-
]);
97+
await pad.setText('\n');
98+
await pad.appendRevision(theChangeset);
10199
};

0 commit comments

Comments
 (0)