Skip to content

Commit d37c5c3

Browse files
skjnldsvnpmbuildbot[bot]
authored andcommitted
Do not process the same FileInfo twice
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
1 parent 07f4167 commit d37c5c3

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

apps/files_sharing/js/dist/files_sharing_tab.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files_sharing/js/dist/files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files_sharing/src/views/SharingTab.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,18 @@ export default {
183183
},
184184
185185
watch: {
186-
fileInfo() {
187-
this.resetState()
188-
this.getShares()
186+
fileInfo(newFile, oldFile) {
187+
if (newFile.id !== oldFile.id) {
188+
this.resetState()
189+
this.getShares()
190+
}
189191
},
190192
},
191193
194+
beforeMount() {
195+
this.getShares()
196+
},
197+
192198
methods: {
193199
/**
194200
* Get the existing shares infos

0 commit comments

Comments
 (0)