mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
Merge pull request #40606 from nextcloud/fix/trashbin-should-not-throw-while-restoring
[stable26] Do not throw while restoring unloaded files list entries
This commit is contained in:
commit
3970b36bb3
3 changed files with 7 additions and 4 deletions
|
|
@ -172,7 +172,10 @@ import PQueue from 'p-queue'
|
|||
var $el
|
||||
for (var i = 0; i < files.length; i++) {
|
||||
$el = this.remove(OC.basename(files[i]), { updateSummary: false })
|
||||
this.fileSummary.remove({ type: $el.attr('data-type'), size: $el.attr('data-size') })
|
||||
// Only remove element if already loaded (might be unloaded if scrollable list)
|
||||
if ($el) {
|
||||
this.fileSummary.remove({ type: $el.attr('data-type'), size: $el.attr('data-size') })
|
||||
}
|
||||
}
|
||||
this.fileSummary.update()
|
||||
this.updateEmptyContent()
|
||||
|
|
|
|||
4
dist/files_trashbin-files_trashbin.js
vendored
4
dist/files_trashbin-files_trashbin.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_trashbin-files_trashbin.js.map
vendored
2
dist/files_trashbin-files_trashbin.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue