Merge pull request #20872 from nextcloud/backport/20831/stable19

[stable19] Do not process the same FileInfo twice
This commit is contained in:
Roeland Jago Douma 2020-05-08 10:08:33 +02:00 committed by GitHub
commit 3ebecaec52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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