Skip to content

Commit

Permalink
Delete Button
Browse files Browse the repository at this point in the history
  • Loading branch information
FaeyUmbrea committed Sep 24, 2023
1 parent 2b605ad commit 96354e3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/svelte/ChatCommandConfigUI.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
}
async function remove(index) {
$commands.splice(index, 1);
const commandArray = $commands;
commandArray.splice(index, 1);
$commands = commandArray;
}
</script>

Expand Down Expand Up @@ -85,9 +87,6 @@
text-align center
border-left 1px solid grey
.macro
border-right 1px solid grey
.config
grid-column 1 / 4
Expand Down

0 comments on commit 96354e3

Please sign in to comment.