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.
@@ -6318,6 +6318,18 @@ var CollectionEditor = function CollectionEditor(props) {
6318
6318
  }
6319
6319
  }
6320
6320
 
6321
+ function renderActions() {
6322
+ if (actions) {
6323
+ return actions.map(function (action) {
6324
+ // clone React action
6325
+ var action2 = React.cloneElement(action, {
6326
+ form: form
6327
+ });
6328
+ return action2;
6329
+ });
6330
+ }
6331
+ }
6332
+
6321
6333
  function renderEditor() {
6322
6334
  var content = new Content(schema, form);
6323
6335
 
@@ -6363,7 +6375,7 @@ var CollectionEditor = function CollectionEditor(props) {
6363
6375
  raised: true,
6364
6376
  disabled: !canSave(),
6365
6377
  action: save
6366
- }), actions ? actions : null), renderEditor()) : null;
6378
+ }), renderActions()), renderEditor()) : null;
6367
6379
  };
6368
6380
  /**
6369
6381
  * Collection Context