ronds-metadata 1.0.28 → 1.0.29

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.
@@ -106,6 +106,8 @@ var MetadataEdit = function MetadataEdit(props) {
106
106
  };
107
107
 
108
108
  var onAddFields = function onAddFields(index) {
109
+ debugger;
110
+
109
111
  if (index === -1) {
110
112
  var _id = form.getFieldValue('id');
111
113
 
@@ -121,7 +123,8 @@ var MetadataEdit = function MetadataEdit(props) {
121
123
  return;
122
124
  }
123
125
 
124
- var _properties = metaSchemaRef.current.properties;
126
+ var _properties = metaSchemaRef.current.properties || form.getFieldValue('properties');
127
+
125
128
  var _curFields = _properties[index];
126
129
 
127
130
  if (_curFields && _curFields.id) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.0.28",
4
+ "version": "1.0.29",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",