ods-component-lib 1.17.194 → 1.17.196

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.
package/dist/index.js CHANGED
@@ -1485,7 +1485,7 @@ function grid(props, dataGridRef) {
1485
1485
  disabled: props.actionPermission == undefined ? false : !props.actionPermission,
1486
1486
  icon: "trash",
1487
1487
  onClick: props.deleteButtonClick
1488
- }), props.actionButtonGroup.map(function (buttonGroupItem) {
1488
+ }), props.actionButtonGroup && Array.isArray(props.actionButtonGroup) && props.actionButtonGroup.map(function (buttonGroupItem) {
1489
1489
  return React__default.createElement(DataGrid.Button, {
1490
1490
  icon: buttonGroupItem.icon,
1491
1491
  visible: true,
@@ -1503,7 +1503,7 @@ function grid(props, dataGridRef) {
1503
1503
  gap: "4px",
1504
1504
  alignSelf: "stretch"
1505
1505
  }
1506
- }, props.pageTitle)), props.toolbarButtonGroup.map(function (buttonGroupItem) {
1506
+ }, props.pageTitle)), props.toolbarButtonGroup && Array.isArray(props.toolbarButtonGroup) && props.toolbarButtonGroup.map(function (buttonGroupItem) {
1507
1507
  return React__default.createElement(DataGrid.Item, {
1508
1508
  location: "before"
1509
1509
  }, React__default.createElement(OdsButton, {