@smartbit4all/ng-client 3.2.34 → 3.2.36

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.
@@ -6013,15 +6013,18 @@ class Table {
6013
6013
  return header;
6014
6014
  }
6015
6015
  isImageResource(element, header) {
6016
- if (!('icons' in element)) {
6016
+ if (!element.icons) {
6017
6017
  return false;
6018
6018
  }
6019
6019
  let property = this.originalProperty(header);
6020
6020
  return Object.keys(element.icons).some((key) => key === property);
6021
6021
  }
6022
6022
  getImageResourceIcons(element, header) {
6023
- let iconCodes = element.icons[this.originalProperty(header)];
6024
- return iconCodes;
6023
+ if (element?.icons) {
6024
+ let iconCodes = element?.icons[this.originalProperty(header)];
6025
+ return iconCodes;
6026
+ }
6027
+ return [];
6025
6028
  }
6026
6029
  getImageResourceIcon(element, header) {
6027
6030
  return element.icons[this.originalProperty(header)].identifier;