ronds-metadata 1.1.27 → 1.1.28

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.
@@ -125,10 +125,16 @@ var MetadataForm = function MetadataForm(props) {
125
125
  }, [mySchma]);
126
126
  React.useEffect(function () {
127
127
  if (initialValues && firstLoadRef.current) {
128
- setTimeout(function () {
128
+ try {
129
129
  form.setFieldsValue(_objectSpread({}, initialValues));
130
130
  firstLoadRef.current = false;
131
- }, 500);
131
+ } catch (ex) {
132
+ console.warn('init not sucess');
133
+ setTimeout(function () {
134
+ form.setFieldsValue(_objectSpread({}, initialValues));
135
+ firstLoadRef.current = false;
136
+ }, 500);
137
+ }
132
138
  }
133
139
  }, [initialValues]);
134
140
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MetadataFormContext.Provider, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.1.27",
4
+ "version": "1.1.28",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",