mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
importHtml: avoid race when applying empty document and the import changeset at the same time
This commit is contained in:
parent
8eb5640cb7
commit
668d62fa3f
1 changed files with 2 additions and 4 deletions
|
@ -94,8 +94,6 @@ exports.setPadHTML = async (pad, html) => {
|
||||||
const theChangeset = builder.toString();
|
const theChangeset = builder.toString();
|
||||||
|
|
||||||
apiLogger.debug(`The changeset: ${theChangeset}`);
|
apiLogger.debug(`The changeset: ${theChangeset}`);
|
||||||
await Promise.all([
|
await pad.setText('\n');
|
||||||
pad.setText('\n'),
|
await pad.appendRevision(theChangeset);
|
||||||
pad.appendRevision(theChangeset),
|
|
||||||
]);
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue