if (this.search !== null) {
observable = this._videosService.searchVideos(this.search);
} else {
- observable = this._videosService.getVideos()
+ observable = this._videosService.getVideos();
}
observable.subscribe(
this._videosService.removeVideo(id).subscribe(
status => this.getVideos(),
error => alert(error)
- )
+ );
}
}