Browse Source

Fixed type document without doc

master
Igor Zhukov 9 years ago
parent
commit
21f5d912bf
  1. 3
      app/js/services.js

3
app/js/services.js

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

Loading…
Cancel
Save