mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 04:52:55 +00:00 
			
		
		
		
	Replace deprecated trigger API call
This commit is contained in:
		@@ -80,8 +80,11 @@ export class DashboardComponent implements OnInit, OnDestroy {
 | 
				
			|||||||
    if (config.dashboard.triggerFirstFSMStep) {
 | 
					    if (config.dashboard.triggerFirstFSMStep) {
 | 
				
			||||||
      setTimeout(() => {
 | 
					      setTimeout(() => {
 | 
				
			||||||
        this.webSocketService.sendJSON({
 | 
					        this.webSocketService.sendJSON({
 | 
				
			||||||
          'key': '',
 | 
					          'key': 'fsm',
 | 
				
			||||||
          'trigger': config.dashboard.triggerFirstFSMStep
 | 
					          'data': {
 | 
				
			||||||
 | 
					            'command': 'trigger',
 | 
				
			||||||
 | 
					            'value': config.dashboard.triggerFirstFSMStep
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user