ywana-core8 0.0.56 → 0.0.57

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.
@@ -4189,6 +4189,18 @@ var TableFilters = function TableFilters(props) {
4189
4189
 
4190
4190
 
4191
4191
  var TableEditor = function TableEditor(props) {
4192
+ var run = function run(action) {
4193
+ try {
4194
+ return Promise.resolve(action.action(item.id, pageContext)).then(function () {
4195
+ return Promise.resolve(pageContext.load()).then(function () {
4196
+ setPageContext(Object.assign({}, pageContext));
4197
+ });
4198
+ });
4199
+ } catch (e) {
4200
+ return Promise.reject(e);
4201
+ }
4202
+ };
4203
+
4192
4204
  var select = function select(row, event) {
4193
4205
  try {
4194
4206
  clear();
@@ -4284,7 +4296,7 @@ var TableEditor = function TableEditor(props) {
4284
4296
  clickable: true,
4285
4297
  size: "small",
4286
4298
  action: function action() {
4287
- _action.action(item.id, pageContext);
4299
+ return run(_action);
4288
4300
  }
4289
4301
  });
4290
4302
  }) : [];