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 (){
const files=this.state.files.filter(item => !this.config.macrosList.some(compareItem => compareItem.gcode_file_name == item));
console.log(files);
this.config.gcodeList=files;
try {
await api.put("config/save", this.config);
console.log("Successfully saved");
this.$dispatch("update");
} catch (error) {
console.error("Restore Failed: ", error);
alert("Restore failed");
}
// this.config.gcodeList=files;
// try {
// await api.put("config/save", this.config);
// console.log("Successfully saved");
// this.$dispatch("update");
// } catch (error) {
// console.error("Restore Failed: ", error);
// alert("Restore failed");
// }
return files;
}
},