[Sprint/RollingRabbit](fix): Blocked channels eternally loading. #2244
Closes #2244
Summary
Currently, users on production who have nobody blocked will see an ever-spinning loading icon.
Testing
- Check /settings/blocked-channels
- Observe that when channels are blocked, they are shown, when channels are not blocked, the loading icon does not endlessly display.
Reasoning
I'm throwing an error to end the observable lifecycle. The filter with this approach is redundant.
0/1
thread resolved
added scoped labels
35 36 ngOnInit() { 36 37 this.load(true); 37 38 this.channels = this.blockListService.blocked.pipe( 38 tap(() => { 39 tap(list => { 39 40 this.inProgress = true; 40 41 this.moreData = false; // Support pagination in the future 42 43 if (list.length < 1) { 44 throw new Error('No more entities'); - Owner
"Channels" not entities.
added scoped label and automatically removed label