From 3bbbe61ec469cf899f8f076af4be15eba6c118fd Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 7 Dec 2021 14:29:00 +0530 Subject: [PATCH] guard against a type error in handling locks for OnlyOffice --- www/common/onlyoffice/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 7eff0cf31..ce96eac81 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -215,7 +215,7 @@ define([ var tabId = metadataMgr.getNetfluxId() + '-' + obj.id; if (content.ids[tabId]) { delete content.ids[tabId]; - delete content.locks[tabId]; + if (content.locks) { delete content.locks[tabId]; } APP.onLocal(); } };