From b8d93a5d966f9b30e8127869808f0c769e6e280a Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 6 Apr 2018 08:49:15 -0700 Subject: [PATCH] add try catch for closing compose dialog --- routes/_components/dialog/ComposeDialog.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/routes/_components/dialog/ComposeDialog.html b/routes/_components/dialog/ComposeDialog.html index 8c39587..c511477 100644 --- a/routes/_components/dialog/ComposeDialog.html +++ b/routes/_components/dialog/ComposeDialog.html @@ -22,7 +22,12 @@ this.set({shown: true}) }, onPostedStatus() { - this.set({closed: true}) + try { + this.set({closed: true}) + } catch (e) { + // TODO: this seems to error sometimes, not sure why + console.error(e) + } } } }