Fixed type document without doc

This commit is contained in:
Igor Zhukov 2016-04-03 23:44:04 +03:00
parent 375379be6e
commit 21f5d912bf

View File

@ -1597,6 +1597,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
if (apiWebPage.document && apiWebPage.document._ === 'document') {
AppDocsManager.saveDoc(apiWebPage.document, mediaContext);
} else {
if (apiWebPage.type == 'document') {
delete apiWebPage.type;
}
delete apiWebPage.document;
}