Skip to content
Snippets Groups Projects
Commit d37c5c30 authored by John Molakvoæ's avatar John Molakvoæ Committed by npmbuildbot[bot]
Browse files

Do not process the same FileInfo twice

parent 07f41671
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -183,12 +183,18 @@ export default { ...@@ -183,12 +183,18 @@ export default {
}, },
watch: { watch: {
fileInfo() { fileInfo(newFile, oldFile) {
this.resetState() if (newFile.id !== oldFile.id) {
this.getShares() this.resetState()
this.getShares()
}
}, },
}, },
beforeMount() {
this.getShares()
},
methods: { methods: {
/** /**
* Get the existing shares infos * Get the existing shares infos
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment