Commit 074acf85 authored by konovalovsergey's avatar konovalovsergey

Error in openDocumentFromZip in case of open xls, ods, csv

parent 3253a5ed
...@@ -962,8 +962,8 @@ var editor; ...@@ -962,8 +962,8 @@ var editor;
AscCommon.PasteElementsId.ELEMENT_DISPAY_STYLE = "none"; AscCommon.PasteElementsId.ELEMENT_DISPAY_STYLE = "none";
} }
}).catch(function(err) { }).catch(function(err) {
if (window.console && window.console.log) { if (window.console && window.console.error) {
window.console.log(err); window.console.error(err);
} }
t.sendEvent('asc_onError', c_oAscError.ID.Unknown, c_oAscError.Level.Critical); t.sendEvent('asc_onError', c_oAscError.ID.Unknown, c_oAscError.Level.Critical);
}); });
...@@ -1057,14 +1057,16 @@ var editor; ...@@ -1057,14 +1057,16 @@ var editor;
}); });
}, Promise.resolve()); }, Promise.resolve());
} }
}); }).catch(function (err) {
Promise.all([loadAsyncFile, Asc.ReadDefTableStyles(wb)]).then(function () { //don't show error.(case of open xls, ods, csv)
if (window.console && window.console.error) {
window.console.error(err);
}
}).then(function (err) {
//clean up //clean up
openXml.SaxParserDataTransfer = {}; openXml.SaxParserDataTransfer = {};
resolve(); return Asc.ReadDefTableStyles(wb);
}).catch(function (err) { }).then(resolve, reject);
reject(err);
});
} }
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment