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.
@@ -5147,7 +5147,7 @@ var CollectionAPI = function CollectionAPI(url, host) {
5147
5147
  var http = HTTPClient(host || window.API || process.env.REACT_APP_API, Session);
5148
5148
  return {
5149
5149
  all: function all(filters, page) {
5150
- var queryParams = page ? "?page={page}&" : "?";
5150
+ var queryParams = page ? "?page=" + page + "&" : "?";
5151
5151
 
5152
5152
  if (filters) {
5153
5153
  var filterQuery = Object.keys(filters).reduce(function (query, key) {
@@ -5238,8 +5238,11 @@ var FieldViewer = function FieldViewer(props) {
5238
5238
  item = field.item,
5239
5239
  label = field.label,
5240
5240
  _field$visible = field.visible,
5241
- visible = _field$visible === void 0 ? true : _field$visible;
5241
+ visible = _field$visible === void 0 ? true : _field$visible,
5242
+ _field$optional = field.optional,
5243
+ optional = _field$optional === void 0 ? false : _field$optional;
5242
5244
  if (!visible) return null;
5245
+ if (optional === true && !value) return null;
5243
5246
 
5244
5247
  switch (type) {
5245
5248
  case TYPES.STRING: