From 84f6b5e17bfa760517ed876b0d7317908cba44db Mon Sep 17 00:00:00 2001 From: Rehili Ghazwa Date: Sat, 7 Feb 2026 22:31:51 +0100 Subject: [PATCH] fix maxSusceptance value --- .../characteristics-pane/characteristics-form-utils.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/dialogs/network-modifications/shunt-compensator/characteristics-pane/characteristics-form-utils.ts b/src/components/dialogs/network-modifications/shunt-compensator/characteristics-pane/characteristics-form-utils.ts index 7b56fca15a..c658cc71e3 100644 --- a/src/components/dialogs/network-modifications/shunt-compensator/characteristics-pane/characteristics-form-utils.ts +++ b/src/components/dialogs/network-modifications/shunt-compensator/characteristics-pane/characteristics-form-utils.ts @@ -125,8 +125,9 @@ export const getCharacteristicsFormData = ({ maximumSectionCount?: number | null; }) => { return { - [CHARACTERISTICS_CHOICE]: - maxSusceptance == null ? CHARACTERISTICS_CHOICES.Q_AT_NOMINAL_V.id : CHARACTERISTICS_CHOICES.SUSCEPTANCE.id, + [CHARACTERISTICS_CHOICE]: maxSusceptance + ? CHARACTERISTICS_CHOICES.Q_AT_NOMINAL_V.id + : CHARACTERISTICS_CHOICES.SUSCEPTANCE.id, [MAX_SUSCEPTANCE]: maxSusceptance, [SHUNT_COMPENSATOR_TYPE]: shuntCompensatorType, [MAX_Q_AT_NOMINAL_V]: maxQAtNominalV,