nuxeo-development-framework 5.0.7 → 5.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30856,9 +30856,10 @@
30856
30856
  display: 'block'
30857
30857
  });
30858
30858
  }, _PdftronComponent_afterLoadWebViewer = function _PdftronComponent_afterLoadWebViewer(instance) {
30859
+ var _a, _b;
30859
30860
  this.isArabic ? instance.setLanguage('ar') : instance.setLanguage('en');
30860
30861
  this.pdftronService.instance = this.webViewerInstance = instance;
30861
- if (this.correspondance.facets.indexOf('ctocr') > -1) {
30862
+ if (this.correspondance.facets.indexOf('ctocr') > -1 && ((_b = (_a = this.correspondance) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b['ctocr:recognizedJson'])) {
30862
30863
  this.fileWithOcr = true;
30863
30864
  this.pages = JSON.parse(this.correspondance.properties['ctocr:recognizedJson']);
30864
30865
  // override search funtion to use our search in ocr not defult search