Skip to content

Commit

Permalink
fix: getAllLabels return null (#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Jul 26, 2022
1 parent 28d4524 commit 515d842
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/api/layers/labels.layer.ts
Expand Up @@ -82,9 +82,7 @@ export class LabelsLayer extends HostLayer {
* ```
*/
public async getAllLabels() {
return await evaluateAndReturn(this.page, () => {
WPP.labels.getAllLabels();
});
return evaluateAndReturn(this.page, () => WPP.labels.getAllLabels());
}
/**
* Delete all Labels
Expand Down

0 comments on commit 515d842

Please sign in to comment.