update state while adding gcode,

This commit is contained in:
sanjayk03-dev
2024-01-22 19:25:44 +05:30
parent 2ccbd2510c
commit d244b4c449
4 changed files with 9 additions and 12 deletions

View File

@@ -373,7 +373,8 @@ module.exports = {
return;
}
if(!this.config.gcodeList.some(item=> item == file.name)){
const isAlreadyPresent = this.config.gcodeList.find((element) => element == file.name);
if(isAlreadyPresent == undefined){
console.log('new gcode file');
this.config.gcodeList.push(file.name);
try {