ywana-core8 0.0.439 → 0.0.442
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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +5 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +5 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +1 -1
- package/src/domain/ContentViewer.js +2 -1
package/dist/index.cjs
CHANGED
@@ -5155,7 +5155,7 @@ var CollectionAPI = function CollectionAPI(url, host) {
|
|
5155
5155
|
var http = HTTPClient(host || window.API || process.env.REACT_APP_API, Session);
|
5156
5156
|
return {
|
5157
5157
|
all: function all(filters, page) {
|
5158
|
-
var queryParams = page ? "?page=
|
5158
|
+
var queryParams = page ? "?page=" + page + "&" : "?";
|
5159
5159
|
|
5160
5160
|
if (filters) {
|
5161
5161
|
var filterQuery = Object.keys(filters).reduce(function (query, key) {
|
@@ -5246,8 +5246,11 @@ var FieldViewer = function FieldViewer(props) {
|
|
5246
5246
|
item = field.item,
|
5247
5247
|
label = field.label,
|
5248
5248
|
_field$visible = field.visible,
|
5249
|
-
visible = _field$visible === void 0 ? true : _field$visible
|
5249
|
+
visible = _field$visible === void 0 ? true : _field$visible,
|
5250
|
+
_field$optional = field.optional,
|
5251
|
+
optional = _field$optional === void 0 ? false : _field$optional;
|
5250
5252
|
if (!visible) return null;
|
5253
|
+
if (optional === true && !value) return null;
|
5251
5254
|
|
5252
5255
|
switch (type) {
|
5253
5256
|
case TYPES.STRING:
|