delete selected bug

This commit is contained in:
sanjayk03-dev
2024-02-26 13:52:34 +05:30
parent 8df3329574
commit 1d7bf87d89

View File

@@ -399,6 +399,7 @@ module.exports = {
delete_current: function () {
if (this.config.macrosList.find(item => item.file_name == this.state.selected) == undefined) {
if (this.state.selected) {
this.config.gcodeList = this.config.gcodeList.filter(item => item.file_name != this.state.selected);
api.delete(`file/${this.state.selected}`);
}
} else {