From 424b36ffca79238e9895052c1d56153f8590bbae Mon Sep 17 00:00:00 2001 From: shortcutme Date: Fri, 5 Oct 2018 15:08:12 +0200 Subject: [PATCH] Avoid double removing tag on sidebar close --- plugins/Sidebar/media/Sidebar.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/Sidebar/media/Sidebar.coffee b/plugins/Sidebar/media/Sidebar.coffee index af2ce3dc..b77332ac 100644 --- a/plugins/Sidebar/media/Sidebar.coffee +++ b/plugins/Sidebar/media/Sidebar.coffee @@ -322,8 +322,9 @@ class Sidebar extends Class if not @opened @container.remove() @container = null - @tag.remove() - @tag = null + if @tag + @tag.remove() + @tag = null # Revert body transformations @log "stopdrag", "opened:", @opened