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:
-rw-r--r--src/view/FilesAppIntegration.js3
-rw-r--r--src/viewer.js2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/view/FilesAppIntegration.js b/src/view/FilesAppIntegration.js
index da5c0a8f..993a836f 100644
--- a/src/view/FilesAppIntegration.js
+++ b/src/view/FilesAppIntegration.js
@@ -119,6 +119,9 @@ export default {
if (this.fileModel !== null) {
return this.fileModel
}
+ if (!this.getFileList()) {
+ return null
+ }
this.getFileList()._updateDetailsView(this.fileName, false)
this.fileModel = this.getFileList().getModelForFile(this.fileName)
diff --git a/src/viewer.js b/src/viewer.js
index 1fabe145..fed66ab5 100644
--- a/src/viewer.js
+++ b/src/viewer.js
@@ -62,7 +62,7 @@ const odfViewer = {
return
}
odfViewer.open = true
- let fileList = FileList
+ let fileList = null
if (context) {
fileList = context.fileList
var fileDir = context.dir