ywana-core8 0.0.456 → 0.0.459

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.umd.js CHANGED
@@ -4679,7 +4679,9 @@
4679
4679
  };
4680
4680
 
4681
4681
  var site = React.useContext(SiteContext);
4682
- var _props$id = props.id,
4682
+ var _props$version = props.version,
4683
+ version = _props$version === void 0 ? 0 : _props$version,
4684
+ _props$id = props.id,
4683
4685
  id = _props$id === void 0 ? "collection" : _props$id,
4684
4686
  icon = props.icon,
4685
4687
  title = props.title,
@@ -4715,6 +4717,9 @@
4715
4717
  return Promise.reject(e);
4716
4718
  }
4717
4719
  }, []);
4720
+ React.useEffect(function () {
4721
+ if (version > 0) reload();
4722
+ }, [version]);
4718
4723
 
4719
4724
  function add() {
4720
4725
  var onOK = function onOK(form) {
@@ -5247,7 +5252,6 @@
5247
5252
  visible = _field$visible === void 0 ? true : _field$visible,
5248
5253
  optional = field.optional;
5249
5254
  if (!visible) return null;
5250
- console.log("FieldViewer Optional", field, value, optional && value === null);
5251
5255
  if (optional && value === undefined) return null;
5252
5256
 
5253
5257
  switch (type) {