Fix error when onlyoffice not in api/config

This commit is contained in:
yflory 2024-03-27 14:41:47 +01:00
parent 3affa95462
commit 30f21885c9
1 changed files with 1 additions and 1 deletions

View File

@ -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,
);