diff --git a/cell/view/WorkbookView.js b/cell/view/WorkbookView.js index ad7d610a5e..2c4c55f149 100644 --- a/cell/view/WorkbookView.js +++ b/cell/view/WorkbookView.js @@ -5992,7 +5992,17 @@ if (editor !== AscCommon.c_oEditorId.Spreadsheet) { continue; } - const oMockWb = wb ? wb : t.model; + const oMockWb = wb; + if (!wb) { + wb = new AscCommonExcel.Workbook(null, window["Asc"]["editor"], false); + wb.DrawingDocument = Asc.editor.wbModel.DrawingDocument; + } + + wb.sharedStrings.all = []; + wb.sharedStrings.text = Object.create(null); + wb.sharedStrings.multiTextMap = Object.create(null); + wb.sharedStrings.bssr = null; + let updatedData = oMockWb.getExternalReferenceSheetsFromZip(stream); _updateData(updatedData, _arrAfterPromise[i].data, t.model /* working file workbook */); }