From 88edea95c8ad53cbb6378d5b782e3441d201b0ee Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 9 Jun 2020 13:24:18 +0200 Subject: [PATCH] Fix type error in ooslide --- www/common/onlyoffice/inner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 19adc46b2..6218681c2 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -271,7 +271,7 @@ define([ var checkDrawings = function () { var editor = getEditor(); - if (!editor) { return false; } + if (!editor || !editor.GetSheets) { return false; } var s = editor.GetSheets(); return s.some(function (obj) { return obj.worksheet.Drawings.length; @@ -775,6 +775,7 @@ define([ } // Send the changes + content.locks = content.locks || {}; rtChannel.sendMsg({ type: "saveChanges", changes: parseChanges(obj.changes),