Browse Source

fix(files_version): Prevent error in nc/vue when deleting an NcListItem in from one of its actions

Signed-off-by: Louis Chemineau <louis@chmn.me>
tags/v29.0.0beta1
Louis Chemineau 3 months ago
parent
commit
ebff12f60e
Failed to extract signature
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      apps/files_versions/src/components/Version.vue

+ 5
- 1
apps/files_versions/src/components/Version.vue View File

@@ -271,7 +271,11 @@ export default defineComponent({
this.$emit('restore', this.version)
},

deleteVersion() {
async deleteVersion() {
// Let @nc-vue properly remove the popover before we delete the version.
// This prevents @nc-vue from throwing a error.
await this.$nextTick()
await this.$nextTick()
this.$emit('delete', this.version)
},


Loading…
Cancel
Save