Skip to content

Commit 056d64f

Browse files
authored
fix busbarsection empty value (#3179)
Signed-off-by: Rehili Ghazwa <[email protected]>
1 parent bc6b959 commit 056d64f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/dialogs/connectivity/connectivity-form.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ export function ConnectivityForm({
159159
if (watchVoltageLevelId) {
160160
setValue(`${id}.${IS_VOLTAGE_LEVEL_MODIFICATION}`, true);
161161
}
162+
if (watchBusBarSectionId === '') {
163+
setValue(`${id}.${BUS_OR_BUSBAR_SECTION}`, null);
164+
}
162165
if (watchBusBarSectionId) {
163166
setValue(`${id}.${IS_BUS_OR_BUSBAR_SECTION_MODIFICATION}`, true);
164167
}

0 commit comments

Comments
 (0)