mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix error handling and "this" context (#1445)
* fix error handling and "this" context * fix typo
This commit is contained in:
@@ -39,7 +39,7 @@ export class AlfrescoSearchService {
|
||||
public getNodeQueryResults(term: string, options?: SearchOptions): Observable<any> {
|
||||
return Observable.fromPromise(this.getQueryNodesPromise(term, options))
|
||||
.map(res => <any> res)
|
||||
.catch(this.handleError);
|
||||
.catch(err => this.handleError(err));
|
||||
}
|
||||
|
||||
private getQueryNodesPromise(term: string, opts: SearchOptions) {
|
||||
|
Reference in New Issue
Block a user