@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 CHANGED
@@ -4443,6 +4443,10 @@ const applyQueryFilters = ({ parameters: configParameters, filters: configFilter
4443
4443
  return result;
4444
4444
  }
4445
4445
  if (typeof configParameters[key] === "string" && configParameters[key].includes("{") && attributes?.length) {
4446
+ const exactAttr = attributes.find(({ attributeName }) => configParameters[key] === `{${attributeName}}`);
4447
+ if (exactAttr) {
4448
+ return { ...result, [key]: exactAttr.value ?? "" };
4449
+ }
4446
4450
  let interpolated = configParameters[key];
4447
4451
  attributes.forEach(({ attributeName, value: attrValue }) => {
4448
4452
  interpolated = interpolated.replace(new RegExp(`\\{${attributeName}\\}`, "g"), attrValue?.toString() ?? "");
@@ -9476,7 +9480,7 @@ function getFeatureAttributes(feature = {}, layer, dataSource) {
9476
9480
  const isIdAttribute = attributeName === idAttribute;
9477
9481
  const additionalProps = isIdAttribute
9478
9482
  ? {
9479
- value: idValue,
9483
+ value: currentAttributes?.[attributeName] ?? idValue,
9480
9484
  readOnly: true,
9481
9485
  }
9482
9486
  : {