Do not process the same FileInfo twice
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
This commit is contained in:
parent
3b0e581dec
commit
90a65f83e0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue