@evergis/react 2.0.236 → 2.0.238
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.cjs.development.js +2 -4
- package/dist/react.cjs.development.js.map +1 -1
- package/dist/react.cjs.production.min.js +1 -1
- package/dist/react.cjs.production.min.js.map +1 -1
- package/dist/react.esm.js +2 -4
- package/dist/react.esm.js.map +1 -1
- package/dist/utils/legend.d.ts +1 -1
- package/package.json +5 -5
|
@@ -2614,15 +2614,13 @@ const checkLayerHasLegend = layerInfo => {
|
|
|
2614
2614
|
})) || false;
|
|
2615
2615
|
};
|
|
2616
2616
|
const getTitleFromCondition = _ref2 => {
|
|
2617
|
-
var _parts$;
|
|
2618
|
-
|
|
2619
2617
|
let {
|
|
2620
2618
|
condition,
|
|
2621
2619
|
attribute,
|
|
2622
2620
|
formatValue
|
|
2623
2621
|
} = _ref2;
|
|
2624
2622
|
const parts = condition == null ? void 0 : condition.split(' == ');
|
|
2625
|
-
const uniqueValue =
|
|
2623
|
+
const uniqueValue = parts != null && parts[1] ? parts[1].startsWith("'") && parts[1].endsWith("'") ? parts[1].slice(1, -1) : parts[1] : '';
|
|
2626
2624
|
return attribute && formatValue ? formatValue(attribute.type, uniqueValue, attribute.stringFormat) : uniqueValue;
|
|
2627
2625
|
};
|
|
2628
2626
|
function createValueTitleFromCondition(paramValue, attribute, formatValue, index) {
|
|
@@ -2885,7 +2883,7 @@ function createHiddenCondition(attributeName, attributeType, value) {
|
|
|
2885
2883
|
comparisonOperator = exports.ComparisonOperator.GreaterThan;
|
|
2886
2884
|
}
|
|
2887
2885
|
} else {
|
|
2888
|
-
newValue = value.uniqueValue;
|
|
2886
|
+
newValue = value.uniqueValue || value.title;
|
|
2889
2887
|
comparisonOperator = exports.ComparisonOperator.NotEquals;
|
|
2890
2888
|
}
|
|
2891
2889
|
|