mirror of https://github.com/xwiki-labs/cryptpad
Fix error when onlyoffice not in api/config
This commit is contained in:
parent
3affa95462
commit
30f21885c9
|
@ -8,7 +8,7 @@ define([
|
|||
"/common/onlyoffice/current-version.js",
|
||||
], function (AppConfig, ApiConfig, OOCurrentVersion) {
|
||||
const OO_APPS = ["sheet", "doc", "presentation"];
|
||||
const ooEnabled = ApiConfig.onlyOffice.availableVersions.includes(
|
||||
const ooEnabled = ApiConfig.onlyOffice && ApiConfig.onlyOffice.availableVersions.includes(
|
||||
OOCurrentVersion.currentVersion,
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue