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.
@@ -4676,7 +4676,9 @@ var CollectionPage = function CollectionPage(props) {
4676
4676
  };
4677
4677
 
4678
4678
  var site = useContext(SiteContext);
4679
- var _props$id = props.id,
4679
+ var _props$version = props.version,
4680
+ version = _props$version === void 0 ? 0 : _props$version,
4681
+ _props$id = props.id,
4680
4682
  id = _props$id === void 0 ? "collection" : _props$id,
4681
4683
  icon = props.icon,
4682
4684
  title = props.title,
@@ -4712,6 +4714,9 @@ var CollectionPage = function CollectionPage(props) {
4712
4714
  return Promise.reject(e);
4713
4715
  }
4714
4716
  }, []);
4717
+ useEffect(function () {
4718
+ if (version > 0) reload();
4719
+ }, [version]);
4715
4720
 
4716
4721
  function add() {
4717
4722
  var onOK = function onOK(form) {
@@ -5244,7 +5249,6 @@ var FieldViewer = function FieldViewer(props) {
5244
5249
  visible = _field$visible === void 0 ? true : _field$visible,
5245
5250
  optional = field.optional;
5246
5251
  if (!visible) return null;
5247
- console.log("FieldViewer Optional", field, value, optional && value === null);
5248
5252
  if (optional && value === undefined) return null;
5249
5253
 
5250
5254
  switch (type) {