@evergis/react 4.0.29 → 4.0.30
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.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +5 -1
- package/dist/react.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/react.esm.js
CHANGED
|
@@ -4441,6 +4441,10 @@ const applyQueryFilters = ({ parameters: configParameters, filters: configFilter
|
|
|
4441
4441
|
return result;
|
|
4442
4442
|
}
|
|
4443
4443
|
if (typeof configParameters[key] === "string" && configParameters[key].includes("{") && attributes?.length) {
|
|
4444
|
+
const exactAttr = attributes.find(({ attributeName }) => configParameters[key] === `{${attributeName}}`);
|
|
4445
|
+
if (exactAttr) {
|
|
4446
|
+
return { ...result, [key]: exactAttr.value ?? "" };
|
|
4447
|
+
}
|
|
4444
4448
|
let interpolated = configParameters[key];
|
|
4445
4449
|
attributes.forEach(({ attributeName, value: attrValue }) => {
|
|
4446
4450
|
interpolated = interpolated.replace(new RegExp(`\\{${attributeName}\\}`, "g"), attrValue?.toString() ?? "");
|
|
@@ -9474,7 +9478,7 @@ function getFeatureAttributes(feature = {}, layer, dataSource) {
|
|
|
9474
9478
|
const isIdAttribute = attributeName === idAttribute;
|
|
9475
9479
|
const additionalProps = isIdAttribute
|
|
9476
9480
|
? {
|
|
9477
|
-
value: idValue,
|
|
9481
|
+
value: currentAttributes?.[attributeName] ?? idValue,
|
|
9478
9482
|
readOnly: true,
|
|
9479
9483
|
}
|
|
9480
9484
|
: {
|