From 5ba803f0a6d0ff82b36e9f3d84e72b7021e0675d Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Fri, 10 Nov 2023 15:55:32 +0100 Subject: [PATCH] fix: crash when saving settings --- main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 1641e5d..2de2709 100644 --- a/main.js +++ b/main.js @@ -1256,7 +1256,11 @@ function loadsettings() if (settings.tagfilter) { - commands.find(c => c.hint == "Add tag filter").hint = removetaghint(); + var command = commands.find(c => c.hint == "Add tag filter"); + if (command) + { + command.hint = removetaghint(); + } } if (settings.titlebydefault && title.hidden)