guard against a type error in handling locks for OnlyOffice

pull/1/head
ansuz 3 years ago
parent 2fcd4e4630
commit 3bbbe61ec4

@ -215,7 +215,7 @@ define([
var tabId = metadataMgr.getNetfluxId() + '-' + obj.id; var tabId = metadataMgr.getNetfluxId() + '-' + obj.id;
if (content.ids[tabId]) { if (content.ids[tabId]) {
delete content.ids[tabId]; delete content.ids[tabId];
delete content.locks[tabId]; if (content.locks) { delete content.locks[tabId]; }
APP.onLocal(); APP.onLocal();
} }
}; };

Loading…
Cancel
Save