ui: sdn: zone evpn: delete exitnodes-primary if empty

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2022-04-20 16:19:38 +02:00 committed by Thomas Lamprecht
parent c945aaef85
commit 3076eb94f1

View File

@ -28,6 +28,10 @@ Ext.define('PVE.sdn.zones.EvpnInputPanel', {
delete values['disable-arp-nd-suppression'];
}
if (values['exitnodes-primary'] === '') {
delete values['exitnodes-primary'];
}
return values;
},