Commit 42ec57cd authored by Thomas Randolph's avatar Thomas Randolph

Remove unnecessary waiting in the diff file component

parent 60e145b1
......@@ -172,9 +172,9 @@ export default {
notesEventHub.$on(`loadCollapsedDiff/${this.file.file_hash}`, this.requestDiff);
eventHub.$on(EVT_EXPAND_ALL_FILES, this.expandAllListener);
},
async mounted() {
mounted() {
if (this.hasDiff) {
await this.postRender();
this.postRender();
}
},
beforeDestroy() {
......@@ -231,8 +231,8 @@ export default {
})
.then(() => {
requestIdleCallback(
async () => {
await this.postRender();
() => {
this.postRender();
this.assignDiscussionsToDiff(this.getDiffFileDiscussions(this.file));
},
{ timeout: 1000 },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment