mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 11:52:54 +00:00 
			
		
		
		
	Avoid polling iframe when url is not set
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user