ui: fix hypervisortrafficlabel for phy nw traffic (#6612)

Fixes: #6593

Before fix UI was setting vlan to 'null' when no value was passed. Now it just leaves the vlan value empty in the trafficlabel.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2022-08-05 10:42:13 +05:30 committed by GitHub
parent 7d50b65674
commit 167cd17d7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ export default {
if (trafficLabel.length > 0) {
trafficLabel += ','
}
trafficLabel += trafficConfig.vlanId
trafficLabel += trafficConfig.vlanId || ''
}
if ('vSwitchType' in trafficConfig) {
if (trafficLabel.length > 0) {