Some promise cleanup (#8092)

* Some promise cleanup

* Handle more promise issues

* Remove changes that aren't needed anymore

* Use log service

* another one

* Be more explicit
This commit is contained in:
Amir Omidi
2019-10-29 17:04:46 -07:00
committed by GitHub
parent 6a6f30523c
commit ab736466cd
5 changed files with 36 additions and 32 deletions

View File

@@ -217,8 +217,8 @@ class DataResourceDataProvider implements IGridDataProvider {
return Promise.resolve(resultSubset);
}
copyResults(selection: Slick.Range[], includeHeaders?: boolean): void {
this.copyResultsAsync(selection, includeHeaders);
async copyResults(selection: Slick.Range[], includeHeaders?: boolean): Promise<void> {
return this.copyResultsAsync(selection, includeHeaders);
}
private async copyResultsAsync(selection: Slick.Range[], includeHeaders?: boolean): Promise<void> {