add try catch for closing compose dialog
This commit is contained in:
		
							parent
							
								
									fe8ad175f2
								
							
						
					
					
						commit
						b8d93a5d96
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -22,7 +22,12 @@
 | 
				
			||||||
        this.set({shown: true})
 | 
					        this.set({shown: true})
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      onPostedStatus() {
 | 
					      onPostedStatus() {
 | 
				
			||||||
        this.set({closed: true})
 | 
					        try {
 | 
				
			||||||
 | 
					          this.set({closed: true})
 | 
				
			||||||
 | 
					        } catch (e) {
 | 
				
			||||||
 | 
					          // TODO: this seems to error sometimes, not sure why
 | 
				
			||||||
 | 
					          console.error(e)
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue