From 8d1f43128759986412945748478210e84aa9aa38 Mon Sep 17 00:00:00 2001 From: David Inga Date: Tue, 12 Dec 2023 09:48:35 +0100 Subject: [PATCH] added business unit ids param to tabular data --- client/CHANGELOG.md | 5 +++++ client/src/store/features/analysis/selector.ts | 2 ++ client/src/types.d.ts | 1 + 3 files changed, 8 insertions(+) diff --git a/client/CHANGELOG.md b/client/CHANGELOG.md index 1b24276e3..cc8589930 100644 --- a/client/CHANGELOG.md +++ b/client/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/). ## [Unreleased] +### Added +- Added a new filter for business units in the analysis page + +## [v1.1.0] + ### Fixed - Enable map popup for h3 contextual layers [LANDGRIF-1484](https://vizzuality.atlassian.net/browse/LANDGRIF-1484) diff --git a/client/src/store/features/analysis/selector.ts b/client/src/store/features/analysis/selector.ts index b1c11e620..2e295a250 100644 --- a/client/src/store/features/analysis/selector.ts +++ b/client/src/store/features/analysis/selector.ts @@ -14,6 +14,7 @@ export const filtersForTabularAPI = createSelector( by, indicator, materials, + businessUnits, t1Suppliers, producers, origins, @@ -30,6 +31,7 @@ export const filtersForTabularAPI = createSelector( producerIds: producers?.map(({ value }) => value), originIds: origins?.map(({ value }) => value), locationTypes: locationTypes?.map(({ value }) => value), + businessUnitIds: businessUnits?.map(({ value }) => value), }; } diff --git a/client/src/types.d.ts b/client/src/types.d.ts index 249de7bc5..eb06176e4 100644 --- a/client/src/types.d.ts +++ b/client/src/types.d.ts @@ -83,6 +83,7 @@ export type ImpactTabularAPIParams = { producerIds?: Supplier['id'][]; locationTypes?: string[]; scenarioId?: string; + businessUnitIds?: BusinessUnits['id'][]; }; type Unit = {