fixing errors

This commit is contained in:
sanjayk03-dev
2024-01-22 15:47:41 +05:30
parent 305e225076
commit bba76aefb4

View File

@@ -205,15 +205,15 @@ module.exports = {
gcode_files: async function (){ gcode_files: async function (){
const files=this.state.files.filter(item => !this.config.macrosList.some(compareItem => compareItem.gcode_file_name == item)); const files=this.state.files.filter(item => !this.config.macrosList.some(compareItem => compareItem.gcode_file_name == item));
console.log(files); console.log(files);
this.config.gcodeList=files; // this.config.gcodeList=files;
try { // try {
await api.put("config/save", this.config); // await api.put("config/save", this.config);
console.log("Successfully saved"); // console.log("Successfully saved");
this.$dispatch("update"); // this.$dispatch("update");
} catch (error) { // } catch (error) {
console.error("Restore Failed: ", error); // console.error("Restore Failed: ", error);
alert("Restore failed"); // alert("Restore failed");
} // }
return files; return files;
} }
}, },