importHtml: avoid race when applying empty document and the import changeset at the same time

This commit is contained in:
webzwo0i 2021-10-29 00:23:19 +02:00 committed by Richard Hansen
parent 8eb5640cb7
commit 668d62fa3f
1 changed files with 2 additions and 4 deletions

View File

@ -94,8 +94,6 @@ exports.setPadHTML = async (pad, html) => {
const theChangeset = builder.toString();
apiLogger.debug(`The changeset: ${theChangeset}`);
await Promise.all([
pad.setText('\n'),
pad.appendRevision(theChangeset),
]);
await pad.setText('\n');
await pad.appendRevision(theChangeset);
};