From 5edac74076276e690965bb196ae6abad8b3b32a8 Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Fri, 12 Jan 2024 02:15:24 +0530 Subject: [PATCH] fixed file name --- src/js/macros.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/macros.js b/src/js/macros.js index 2932a5c..e1c2500 100644 --- a/src/js/macros.js +++ b/src/js/macros.js @@ -119,7 +119,7 @@ module.exports = { this.config.macros[this.tab - 1].name = macrosName; this.config.macros[this.tab - 1].color = macrosColor; - this.config.macros[this.tab - 1].gcode_file_name = file.name; + this.config.macros[this.tab - 1].gcode_file_name = this.state.selected == 'default' ? macrosName : this.state.selected; this.config.macros[this.tab - 1].gcode_file_time = this.state.selected_time; this.cancelMacros(this.tab - 1); @@ -191,6 +191,7 @@ module.exports = { }, ]; this.confirmReset = false; + console.log(this.config); try { await api.put("config/save", this.config); console.log("Successfully flushed");