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 +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentViewer.js +0 -2
- package/src/domain/TablePage.js +13 -4
package/dist/index.umd.js
CHANGED
@@ -4679,7 +4679,9 @@
|
|
4679
4679
|
};
|
4680
4680
|
|
4681
4681
|
var site = React.useContext(SiteContext);
|
4682
|
-
var _props$
|
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) {
|