Seemed to have fixed it
This commit is contained in:
		
							parent
							
								
									441523b6d4
								
							
						
					
					
						commit
						6240f78c83
					
				
					 1 changed files with 11 additions and 4 deletions
				
			
		| 
						 | 
					@ -108,10 +108,17 @@ export function promiseDialog<T extends Promise<any>>(
 | 
				
			||||||
		if (onFailure) {
 | 
							if (onFailure) {
 | 
				
			||||||
			onFailure(err);
 | 
								onFailure(err);
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			alert({
 | 
								if (err.message) {
 | 
				
			||||||
				type: 'error',
 | 
									alert({
 | 
				
			||||||
				text: err,
 | 
										type: 'error',
 | 
				
			||||||
			});
 | 
										text: err.message,
 | 
				
			||||||
 | 
									});
 | 
				
			||||||
 | 
								} else {
 | 
				
			||||||
 | 
									alert({
 | 
				
			||||||
 | 
										type: 'error',
 | 
				
			||||||
 | 
										text: err,
 | 
				
			||||||
 | 
									});
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	});
 | 
						});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue