removed then() after submit
This commit is contained in:
		
							parent
							
								
									1d5000e619
								
							
						
					
					
						commit
						6c523503b6
					
				
					 1 changed files with 25 additions and 25 deletions
				
			
		|  | @ -466,7 +466,8 @@ function ModalComponent({ | |||
|                             submit({ | ||||
|                                 id: selected!, | ||||
|                                 ...settings | ||||
|                             }).then(() => { | ||||
|                             }); | ||||
| 
 | ||||
|                             setTimeout(() => { | ||||
|                                 conn = [...MediaEngineStore.getMediaEngine().connections].find( | ||||
|                                     connection => connection.streamUserId === UserStore.getCurrentUser().id | ||||
|  | @ -491,7 +492,6 @@ function ModalComponent({ | |||
|                                     }); | ||||
|                                 } | ||||
|                             }, 100); | ||||
|                             }); | ||||
|                         } catch (error) { | ||||
|                             logger.error("Error while submitting stream.", error); | ||||
|                         } | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Oleh Polisan
						Oleh Polisan