From dc55acd75ddd2bf65fee442f88da386ae69028f5 Mon Sep 17 00:00:00 2001 From: Adam Oresten Date: Mon, 30 Aug 2021 02:43:54 +0100 Subject: [PATCH] Continued fixes --- scripts/module.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/module.js b/scripts/module.js index f60816c..e31a6b6 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -96,6 +96,10 @@ class GlobalTagsManager{ }else{ inTags.forEach(t => tags.delete(t)); } + if(tags.size === 0){ + await obj.unsetFlag("global-tags", "tags"); + continue; + } await obj.setFlag("global-tags", "tags", Array.from(tags)); }else{ await obj.unsetFlag("global-tags", "tags");