From 6809d4e2588d89edf27d70ff6906265217174c88 Mon Sep 17 00:00:00 2001 From: jamal-khey Date: Wed, 8 Jan 2025 12:07:44 +0100 Subject: [PATCH] fix sort by equipements in load flow results (#2482) Signed-off-by: jamal-khey Co-authored-by: AAJELLAL <128486125+AAJELLAL@users.noreply.github.com> --- src/components/results/loadflow/load-flow-result-utils.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/results/loadflow/load-flow-result-utils.ts b/src/components/results/loadflow/load-flow-result-utils.ts index 14cdd8588d..3d6dc7ecd3 100644 --- a/src/components/results/loadflow/load-flow-result-utils.ts +++ b/src/components/results/loadflow/load-flow-result-utils.ts @@ -64,6 +64,7 @@ export const convertSide = (side: string | undefined, intl: IntlShape) => { export const FROM_COLUMN_TO_FIELD_LIMIT_VIOLATION_RESULT: Record = { subjectId: 'subjectId', + locationId: 'locationId', status: 'status', limitType: 'limitType', limitName: 'limitName', @@ -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 } }, @@ -346,7 +347,7 @@ export const loadFlowVoltageViolationsColumnsDefinition = ( return [ makeAgGridCustomHeaderColumn({ headerName: intl.formatMessage({ id: 'OverloadedEquipment' }), - id: 'locationId', + id: 'subjectId', field: 'locationId', sortProps, filterComponent: CustomAggridComparatorFilter,