ywana-core8 0.0.56 → 0.0.60

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.
@@ -4249,6 +4249,18 @@ var TableEditor = function TableEditor(props) {
4249
4249
  setPageContext(Object.assign({}, pageContext));
4250
4250
  }
4251
4251
 
4252
+ function run(action, item) {
4253
+ action.action(item.id, pageContext, function () {
4254
+ try {
4255
+ return Promise.resolve(pageContext.load()).then(function () {
4256
+ setPageContext(Object.assign({}, pageContext));
4257
+ });
4258
+ } catch (e) {
4259
+ return Promise.reject(e);
4260
+ }
4261
+ });
4262
+ }
4263
+
4252
4264
  function renderGroups() {
4253
4265
  var items = filter ? filter(all) : all;
4254
4266
  var groups = items.reduce(function (groups, filter) {
@@ -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, item);
4288
4300
  }
4289
4301
  });
4290
4302
  }) : [];