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.cjs CHANGED
@@ -4684,7 +4684,9 @@ var CollectionPage = function CollectionPage(props) {
4684
4684
  };
4685
4685
 
4686
4686
  var site = React.useContext(SiteContext);
4687
- var _props$id = props.id,
4687
+ var _props$version = props.version,
4688
+ version = _props$version === void 0 ? 0 : _props$version,
4689
+ _props$id = props.id,
4688
4690
  id = _props$id === void 0 ? "collection" : _props$id,
4689
4691
  icon = props.icon,
4690
4692
  title = props.title,
@@ -4720,6 +4722,9 @@ var CollectionPage = function CollectionPage(props) {
4720
4722
  return Promise.reject(e);
4721
4723
  }
4722
4724
  }, []);
4725
+ React.useEffect(function () {
4726
+ if (version > 0) reload();
4727
+ }, [version]);
4723
4728
 
4724
4729
  function add() {
4725
4730
  var onOK = function onOK(form) {
@@ -5252,7 +5257,6 @@ var FieldViewer = function FieldViewer(props) {
5252
5257
  visible = _field$visible === void 0 ? true : _field$visible,
5253
5258
  optional = field.optional;
5254
5259
  if (!visible) return null;
5255
- console.log("FieldViewer Optional", field, value, optional && value === null);
5256
5260
  if (optional && value === undefined) return null;
5257
5261
 
5258
5262
  switch (type) {