Skip to content

Commit

Permalink
Remove kickOff task
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdaley committed Sep 29, 2023
1 parent 14540eb commit 2c7a52c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions web/app/components/document/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,6 @@ export default class DocumentSidebarComponent extends Component<DocumentSidebarC
});
}

@action kickOffBackgroundTasks() {
void this.getDocType.perform();
}

/**
* A task that waits for a short time and then resolves.
* Used to trigger the "link created" state of the share button.
Expand Down Expand Up @@ -790,12 +786,14 @@ export default class DocumentSidebarComponent extends Component<DocumentSidebarC
*/
@action protected didInsertBody(element: HTMLElement) {
this._body = element;
void this.getDocType.perform();

// kick off whether the draft is shareable.
if (this.isDraft) {
void this.getDraftPermissions.perform();
}

// get the doc type for the request review? checkbox
void this.getDocType.perform();
}

/**
Expand Down

0 comments on commit 2c7a52c

Please sign in to comment.