@smartbit4all/ng-client 3.3.95 → 3.3.97

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.
@@ -6076,7 +6076,6 @@ class Table {
6076
6076
  return length > 0;
6077
6077
  }
6078
6078
  catch (error) {
6079
- console.error(`The type of property ${button.menuItemButtonsPropertyName} is not a list.`);
6080
6079
  return false;
6081
6080
  }
6082
6081
  }
@@ -6148,7 +6147,10 @@ class Table {
6148
6147
  return resource.style ? resource.style : {};
6149
6148
  }
6150
6149
  openDefaultActionsMenu(row) {
6151
- let actionCodesFromRow = row?.actions.map((action) => action.code);
6150
+ let actionCodesFromRow = row?.actions?.map((action) => action.code);
6151
+ if (!actionCodesFromRow) {
6152
+ return;
6153
+ }
6152
6154
  let filteredActions = this.smartTable.defaultActions?.filter((action) => actionCodesFromRow.includes(action.code));
6153
6155
  if (filteredActions && filteredActions.length > 0) {
6154
6156
  if (filteredActions.length === 1) {
@@ -6164,7 +6166,7 @@ class Table {
6164
6166
  }
6165
6167
  }
6166
6168
  getDefaultActionsForRow(element) {
6167
- let actionCodesFromRow = element?.actions.map((action) => action.code);
6169
+ let actionCodesFromRow = element?.actions?.map((action) => action.code);
6168
6170
  if (actionCodesFromRow) {
6169
6171
  return this.smartTable.defaultActions?.filter((action) => actionCodesFromRow.includes(action.code));
6170
6172
  }