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.umd.js
CHANGED
@@ -5150,7 +5150,7 @@
|
|
5150
5150
|
var http = HTTPClient(host || window.API || process.env.REACT_APP_API, Session);
|
5151
5151
|
return {
|
5152
5152
|
all: function all(filters, page) {
|
5153
|
-
var queryParams = page ? "?page=
|
5153
|
+
var queryParams = page ? "?page=" + page + "&" : "?";
|
5154
5154
|
|
5155
5155
|
if (filters) {
|
5156
5156
|
var filterQuery = Object.keys(filters).reduce(function (query, key) {
|
@@ -5241,8 +5241,11 @@
|
|
5241
5241
|
item = field.item,
|
5242
5242
|
label = field.label,
|
5243
5243
|
_field$visible = field.visible,
|
5244
|
-
visible = _field$visible === void 0 ? true : _field$visible
|
5244
|
+
visible = _field$visible === void 0 ? true : _field$visible,
|
5245
|
+
_field$optional = field.optional,
|
5246
|
+
optional = _field$optional === void 0 ? false : _field$optional;
|
5245
5247
|
if (!visible) return null;
|
5248
|
+
if (optional === true && !value) return null;
|
5246
5249
|
|
5247
5250
|
switch (type) {
|
5248
5251
|
case TYPES.STRING:
|