aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/src/files_versions_tab.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_versions/src/files_versions_tab.js b/apps/files_versions/src/files_versions_tab.js
index 8b816746401..a341b9009c3 100644
--- a/apps/files_versions/src/files_versions_tab.js
+++ b/apps/files_versions/src/files_versions_tab.js
@@ -60,6 +60,9 @@ window.addEventListener('DOMContentLoaded', function() {
TabInstance.update(fileInfo)
},
setIsActive(isActive) {
+ if (!TabInstance) {
+ return
+ }
TabInstance.setIsActive(isActive)
},
destroy() {