@steedos-widgets/amis-object 6.10.1-beta.15 → 6.10.1-beta.16

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.
@@ -22119,16 +22119,22 @@ var AmisObjectButton = function (props) {
22119
22119
  }
22120
22120
  }, [objectName, name]);
22121
22121
  var buttonClick = function () {
22122
- return executeButton(button, {
22123
- objectName: objectName,
22124
- listViewId: listViewId || data.listViewId,
22125
- uiSchema: uiSchema,
22126
- record: data,
22127
- recordId: data._id,
22128
- appId: appId,
22129
- formFactor: formFactor,
22130
- scope: data._scoped
22131
- });
22122
+ try {
22123
+ return executeButton(button, {
22124
+ objectName: objectName,
22125
+ listViewId: listViewId || data.listViewId,
22126
+ uiSchema: uiSchema,
22127
+ record: data,
22128
+ recordId: data._id,
22129
+ appId: appId,
22130
+ formFactor: formFactor,
22131
+ scope: data._scoped
22132
+ });
22133
+ }
22134
+ catch (error) {
22135
+ console.error(error);
22136
+ SteedosUI.notification.error({ message: error.message });
22137
+ }
22132
22138
  };
22133
22139
  if (!button) {
22134
22140
  return (React__default["default"].createElement(React__default["default"].Fragment, null,