mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2024-12-05 02:41:32 +00:00
Avoid polling iframe when url is not set
This commit is contained in:
parent
f51aebe1de
commit
52e80dff03
@ -168,6 +168,10 @@ export class DashboardComponent implements OnInit, OnDestroy {
|
||||
errors.pipe(
|
||||
tap(
|
||||
response => {
|
||||
if (this.iframeUrl.value === '') {
|
||||
this.iframeReloadSubscription.unsubscribe();
|
||||
this.polling.next(false);
|
||||
}
|
||||
if (response.status === 200) {
|
||||
this.iframeReloadSubscription.unsubscribe();
|
||||
this.polling.next(false);
|
||||
|
Loading…
Reference in New Issue
Block a user