ywana-core8 0.0.692 → 0.0.693

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 CHANGED
@@ -6326,6 +6326,18 @@ var CollectionEditor = function CollectionEditor(props) {
6326
6326
  }
6327
6327
  }
6328
6328
 
6329
+ function renderActions() {
6330
+ if (actions) {
6331
+ return actions.map(function (action) {
6332
+ // clone React action
6333
+ var action2 = React__default["default"].cloneElement(action, {
6334
+ form: form
6335
+ });
6336
+ return action2;
6337
+ });
6338
+ }
6339
+ }
6340
+
6329
6341
  function renderEditor() {
6330
6342
  var content = new Content(schema, form);
6331
6343
 
@@ -6371,7 +6383,7 @@ var CollectionEditor = function CollectionEditor(props) {
6371
6383
  raised: true,
6372
6384
  disabled: !canSave(),
6373
6385
  action: save
6374
- }), actions ? actions : null), renderEditor()) : null;
6386
+ }), renderActions()), renderEditor()) : null;
6375
6387
  };
6376
6388
  /**
6377
6389
  * Collection Context