Skip to content

Commit

Permalink
added business unit ids param to tabular data
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsingal committed Dec 12, 2023
1 parent e638f26 commit 8d1f431
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions client/src/store/features/analysis/selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const filtersForTabularAPI = createSelector(
by,
indicator,
materials,
businessUnits,
t1Suppliers,
producers,
origins,
Expand All @@ -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),
};
}

Expand Down
1 change: 1 addition & 0 deletions client/src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export type ImpactTabularAPIParams = {
producerIds?: Supplier['id'][];
locationTypes?: string[];
scenarioId?: string;
businessUnitIds?: BusinessUnits['id'][];
};

type Unit = {
Expand Down

0 comments on commit 8d1f431

Please sign in to comment.