Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-05-17 12:48:47 +0300
committerGitHub <noreply@github.com>2022-05-17 12:48:47 +0300
commit0e859d6feb1b0d86eee43366a145cd1fcd2c7b24 (patch)
tree638a6100a98ed2fbce66509e27d2e491da55b5e9
parent6637da500c5cdc1f4a5d227f6a6457b67e15e1a4 (diff)
parent88e859ddf4f5bdc2e3b43da03bcade51746df4ae (diff)
Merge pull request #2214 from nextcloud/backport/2187/stable4
[stable4] When getFileList function returns null, getFileModel function returns…
-rw-r--r--src/view/FilesAppIntegration.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/FilesAppIntegration.js b/src/view/FilesAppIntegration.js
index 0df6418e..f373d2ec 100644
--- a/src/view/FilesAppIntegration.js
+++ b/src/view/FilesAppIntegration.js
@@ -207,10 +207,10 @@ export default {
if (this.fileModel) {
return this.fileModel
}
- if (!this.getFileList()) {
+ if (!this.getFileList() || !this.getFileList().getModelForFile || !this.getFileList()._updateDetailsView) {
return null
}
- this.getFileList()._updateDetailsView && this.getFileList()._updateDetailsView(this.fileName, false)
+ this.getFileList()._updateDetailsView(this.fileName, false)
this.fileModel = this.getFileList().getModelForFile(this.fileName)
if (this.fileModel && this.fileModel.on) {