@evergis/react 2.0.237 → 2.0.239

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/react.esm.js CHANGED
@@ -2615,15 +2615,13 @@ const checkLayerHasLegend = layerInfo => {
2615
2615
  })) || false;
2616
2616
  };
2617
2617
  const getTitleFromCondition = _ref2 => {
2618
- var _parts$;
2619
-
2620
2618
  let {
2621
2619
  condition,
2622
2620
  attribute,
2623
2621
  formatValue
2624
2622
  } = _ref2;
2625
2623
  const parts = condition == null ? void 0 : condition.split(' == ');
2626
- const uniqueValue = (parts == null ? void 0 : (_parts$ = parts[1]) == null ? void 0 : _parts$.slice(1, -1)) || '';
2624
+ const uniqueValue = parts != null && parts[1] ? parts[1].startsWith("'") && parts[1].endsWith("'") ? parts[1].slice(1, -1) : parts[1] : '';
2627
2625
  return attribute && formatValue ? formatValue(attribute.type, uniqueValue, attribute.stringFormat) : uniqueValue;
2628
2626
  };
2629
2627
  function createValueTitleFromCondition(paramValue, attribute, formatValue, index) {
@@ -2886,7 +2884,7 @@ function createHiddenCondition(attributeName, attributeType, value) {
2886
2884
  comparisonOperator = ComparisonOperator.GreaterThan;
2887
2885
  }
2888
2886
  } else {
2889
- newValue = value.uniqueValue;
2887
+ newValue = value.uniqueValue || value.title;
2890
2888
  comparisonOperator = ComparisonOperator.NotEquals;
2891
2889
  }
2892
2890