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.
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +13 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +13 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +7 -1
package/dist/index.cjs
CHANGED
@@ -4195,6 +4195,18 @@ var TableFilters = function TableFilters(props) {
|
|
4195
4195
|
|
4196
4196
|
|
4197
4197
|
var TableEditor = function TableEditor(props) {
|
4198
|
+
var run = function run(action) {
|
4199
|
+
try {
|
4200
|
+
return Promise.resolve(action.action(item.id, pageContext)).then(function () {
|
4201
|
+
return Promise.resolve(pageContext.load()).then(function () {
|
4202
|
+
setPageContext(Object.assign({}, pageContext));
|
4203
|
+
});
|
4204
|
+
});
|
4205
|
+
} catch (e) {
|
4206
|
+
return Promise.reject(e);
|
4207
|
+
}
|
4208
|
+
};
|
4209
|
+
|
4198
4210
|
var select = function select(row, event) {
|
4199
4211
|
try {
|
4200
4212
|
clear();
|
@@ -4290,7 +4302,7 @@ var TableEditor = function TableEditor(props) {
|
|
4290
4302
|
clickable: true,
|
4291
4303
|
size: "small",
|
4292
4304
|
action: function action() {
|
4293
|
-
_action
|
4305
|
+
return run(_action);
|
4294
4306
|
}
|
4295
4307
|
});
|
4296
4308
|
}) : [];
|