@propeller-commerce/propeller-v2-react-ui 0.15.1 → 0.15.2
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/CHANGELOG.md +14 -0
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9368,7 +9368,10 @@ function GridFilters(rawProps) {
|
|
|
9368
9368
|
return filter?.attributeDescription?.name || "";
|
|
9369
9369
|
}
|
|
9370
9370
|
function getFilterTitle(filter) {
|
|
9371
|
-
|
|
9371
|
+
const descriptions = filter?.attributeDescription?.descriptions;
|
|
9372
|
+
const lang = props.language?.toUpperCase();
|
|
9373
|
+
const match = lang ? descriptions?.find((d) => d?.language?.toUpperCase() === lang) : void 0;
|
|
9374
|
+
return match?.value || descriptions?.[0]?.value || filter?.attributeDescription?.name || "";
|
|
9372
9375
|
}
|
|
9373
9376
|
function getFilteredFilters() {
|
|
9374
9377
|
const list = props.filters ?? [];
|