From 07a899ad61e292260bd8aff4ca73217662a323d6 Mon Sep 17 00:00:00 2001
From: Jakob Stendahl <jakob.stendahl@outlook.com>
Date: Wed, 13 Oct 2021 08:12:38 +0200
Subject: :lipstick: Add Trigger variable, fix small UI bug

---
 src_frontend/Components/ModeList/NewModeDialog.svelte | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src_frontend/Components/ModeList/NewModeDialog.svelte')

diff --git a/src_frontend/Components/ModeList/NewModeDialog.svelte b/src_frontend/Components/ModeList/NewModeDialog.svelte
index 539e3ef..c3734a9 100644
--- a/src_frontend/Components/ModeList/NewModeDialog.svelte
+++ b/src_frontend/Components/ModeList/NewModeDialog.svelte
@@ -36,6 +36,7 @@
     // let remoteModes = [];
     openSocket.on("modelist", (modes) => {
         builtinModes = [];
+        userModes = [];
         for (let i = 0; i < modes.length; i++) {
             if (modes[i].substr(0, 8) === "builtin/") {
                 builtinModes.push([modes[i], modes[i].replace("builtin/", "")]);
-- 
cgit v1.2.3

