Skip to content

Commit

Permalink
bugfix: update metadata by override gcode file
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Jan 31, 2021
1 parent 8363932 commit e2e496c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/files/mutations.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default {
let parent = findDirectory(state.filetree, (payload.item.root+"/"+path).split("/"));

if (parent) {
if (parent.findIndex(element => (!element.isDirectory && element.filename === filename)) < 0) {
if (parent.findIndex(element => (!element.isDirectory && element.filename === filename)) === -1) {
let modified = new Date(payload.item.modified * 1000);

parent.push({
Expand All @@ -108,7 +108,7 @@ export default {
size: payload.item.size,
metadataPulled: false,
});
}
} else Vue.prototype.$socket.sendObj("server.files.metadata", { filename: payload.item.path }, "files/getMetadata")
}
},

Expand Down

0 comments on commit e2e496c

Please sign in to comment.