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 authored and alexeh committed Dec 12, 2023
1 parent 8ff4633 commit f07d4be
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

1 comment on commit f07d4be

@vercel
Copy link

@vercel vercel bot commented on f07d4be Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

landgriffon-client – ./client

landgriffon-client.vercel.app
landgriffon-client-git-dev-vizzuality1.vercel.app
landgriffon-client-vizzuality1.vercel.app

Please sign in to comment.