Skip to content

Commit

Permalink
fix sort by equipements in load flow results (#2482)
Browse files Browse the repository at this point in the history
Signed-off-by: jamal-khey <[email protected]>
Co-authored-by: AAJELLAL <[email protected]>
  • Loading branch information
jamal-khey and AAJELLAL authored Jan 8, 2025
1 parent be96aa9 commit 6809d4e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/results/loadflow/load-flow-result-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const convertSide = (side: string | undefined, intl: IntlShape) => {

export const FROM_COLUMN_TO_FIELD_LIMIT_VIOLATION_RESULT: Record<string, string> = {
subjectId: 'subjectId',
locationId: 'locationId',
status: 'status',
limitType: 'limitType',
limitName: 'limitName',
Expand Down Expand Up @@ -235,8 +236,8 @@ export const loadFlowCurrentViolationsColumnsDefinition = (
return [
makeAgGridCustomHeaderColumn({
headerName: intl.formatMessage({ id: 'OverloadedEquipment' }),
id: 'subjectId',
field: 'subjectId',
id: 'locationId',
field: 'locationId',
sortProps,
filterComponent: CustomAggridComparatorFilter,
filterComponentParams: { filterParams: { ...filterProps, ...textFilterParams } },
Expand Down Expand Up @@ -346,7 +347,7 @@ export const loadFlowVoltageViolationsColumnsDefinition = (
return [
makeAgGridCustomHeaderColumn({
headerName: intl.formatMessage({ id: 'OverloadedEquipment' }),
id: 'locationId',
id: 'subjectId',
field: 'locationId',
sortProps,
filterComponent: CustomAggridComparatorFilter,
Expand Down

0 comments on commit 6809d4e

Please sign in to comment.