diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-05-17 12:48:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 12:48:47 +0300 |
commit | 0e859d6feb1b0d86eee43366a145cd1fcd2c7b24 (patch) | |
tree | 638a6100a98ed2fbce66509e27d2e491da55b5e9 | |
parent | 6637da500c5cdc1f4a5d227f6a6457b67e15e1a4 (diff) | |
parent | 88e859ddf4f5bdc2e3b43da03bcade51746df4ae (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.js | 4 |
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) { |