better resilience
This commit is contained in:
parent
2d6882b1f8
commit
fbf65b39c8
|
@ -91,6 +91,8 @@ export class PollComponent implements OnInit {
|
|||
|
||||
this.pollPerAccountId[newSelectedAccount.id] = this.toolsService.getStatusUsableByAccount(newSelectedAccount, new StatusWrapper(this.statusWrapper.status, this.statusWrapper.provider))
|
||||
.then((status: Status) => {
|
||||
if(status.poll === null) return null;
|
||||
|
||||
return this.mastodonService.getPoll(newSelectedAccount, status.poll.id);
|
||||
})
|
||||
.then((poll: Poll) => {
|
||||
|
|
|
@ -79,6 +79,7 @@ export class StreamStatusesComponent implements OnInit, OnDestroy {
|
|||
|
||||
this.streamsSubscription = this.streams$.subscribe((streams: StreamElement[]) => {
|
||||
let updatedStream = streams.find(x => x.id === this.streamElement.id);
|
||||
if(!updatedStream) return;
|
||||
|
||||
if (this.hideBoosts !== updatedStream.hideBoosts
|
||||
|| this.hideBots !== updatedStream.hideBots
|
||||
|
|
Loading…
Reference in New Issue