mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
observable fix (#3692)
This commit is contained in:
@@ -24,7 +24,7 @@ import { FormService } from '../../../services/form.service';
|
|||||||
import { GroupModel } from '../core/group.model';
|
import { GroupModel } from '../core/group.model';
|
||||||
import { baseHost, WidgetComponent } from './../widget.component';
|
import { baseHost, WidgetComponent } from './../widget.component';
|
||||||
import { FormControl } from '@angular/forms';
|
import { FormControl } from '@angular/forms';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable, of } from 'rxjs';
|
||||||
import {
|
import {
|
||||||
catchError,
|
catchError,
|
||||||
distinctUntilChanged,
|
distinctUntilChanged,
|
||||||
@@ -32,7 +32,6 @@ import {
|
|||||||
switchMap,
|
switchMap,
|
||||||
tap
|
tap
|
||||||
} from 'rxjs/operators';
|
} from 'rxjs/operators';
|
||||||
import 'rxjs/add/observable/empty';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'people-widget',
|
selector: 'people-widget',
|
||||||
@@ -66,7 +65,7 @@ export class PeopleWidgetComponent extends WidgetComponent implements OnInit {
|
|||||||
.pipe(
|
.pipe(
|
||||||
catchError(err => {
|
catchError(err => {
|
||||||
this.errorMsg = err.message;
|
this.errorMsg = err.message;
|
||||||
return Observable.empty();
|
return of();
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
|
Reference in New Issue
Block a user