From 53efe8de45018db2cc6c08dd54dacfd84d09b3ae Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Mon, 8 Apr 2024 17:15:48 +0530 Subject: [PATCH] bug fix in delete_selected_macro --- src/js/macros.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/macros.js b/src/js/macros.js index f2b2246..aa0b983 100644 --- a/src/js/macros.js +++ b/src/js/macros.js @@ -426,6 +426,7 @@ module.exports = { } this.config.macros = [...this.state.macros]; this.config.macros.splice(this.tab - 1, 1); + this.tab = this.state.macros.length - 1; this.clear_macro(); try { await api.put("config/save", this.config);