From 96354e39ce026b0401fc76b33d69973b75cd0174 Mon Sep 17 00:00:00 2001 From: Faey Umbrea <1144986+FaeyUmbrea@users.noreply.github.com> Date: Sun, 24 Sep 2023 20:07:43 +0200 Subject: [PATCH] Delete Button --- src/svelte/ChatCommandConfigUI.svelte | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/svelte/ChatCommandConfigUI.svelte b/src/svelte/ChatCommandConfigUI.svelte index d818042..58300b8 100644 --- a/src/svelte/ChatCommandConfigUI.svelte +++ b/src/svelte/ChatCommandConfigUI.svelte @@ -27,7 +27,9 @@ } async function remove(index) { - $commands.splice(index, 1); + const commandArray = $commands; + commandArray.splice(index, 1); + $commands = commandArray; } @@ -85,9 +87,6 @@ text-align center border-left 1px solid grey - .macro - border-right 1px solid grey - .config grid-column 1 / 4