@datawheel/data-explorer 1.0.5 → 1.0.6
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/main.mjs +2 -1
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -3395,6 +3395,7 @@ function MultiFilter({ header }) {
|
|
|
3395
3395
|
const cutItems = useSelector$1(selectCutItems);
|
|
3396
3396
|
const drilldownItems = useSelector$1(selectDrilldownItems);
|
|
3397
3397
|
const label = header.column.id;
|
|
3398
|
+
const localeLabel = header.column.columnDef.header;
|
|
3398
3399
|
const drilldown = drilldownItems.find((d) => d.level === header.column.id);
|
|
3399
3400
|
const actions2 = useActions();
|
|
3400
3401
|
const { idFormatters } = useidFormatters();
|
|
@@ -3436,7 +3437,7 @@ function MultiFilter({ header }) {
|
|
|
3436
3437
|
newQuery.params.cuts[cut.key] = { ...newCut, members: value };
|
|
3437
3438
|
debouncedUpdateUrl(newQuery);
|
|
3438
3439
|
},
|
|
3439
|
-
placeholder: t("params.filter_by", { name:
|
|
3440
|
+
placeholder: t("params.filter_by", { name: localeLabel }),
|
|
3440
3441
|
value: cut.members || [],
|
|
3441
3442
|
data: drilldown.members.map((m) => {
|
|
3442
3443
|
const idFormatter = idFormatters[`${label} ID`];
|