Draft “commit time” is the time the write starts, not the time the write finishes

This commit is contained in:
Ben Gotow 2019-06-17 12:45:07 -05:00
parent adbae6657c
commit 2c630c47bc

View file

@ -101,9 +101,9 @@ export class DraftChangeSet extends EventEmitter {
if (this.dirtyFields().length > 0) {
this.clearDelayedCommit();
this._lastCommitTime = performance.now();
this._commitPromise = this.callbacks.onCommit();
await this._commitPromise;
this._lastCommitTime = performance.now();
this._commitPromise = null;
}
}