Skip to content

Commit 4762115

Browse files
committed
ui: fix empty source cidr value for firewall rule
Fixes #10002 Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 9967bb3 commit 4762115

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/src/views/network/FirewallRules.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ export default {
404404
addRule () {
405405
if (this.loading) return
406406
this.loading = true
407+
if (this.newRule.cidrlist == null || this.newRule.cidrlist.trim?.() === '') {
408+
delete this.newRule['cidrlist']
409+
}
407410
api('createFirewallRule', { ...this.newRule }).then(response => {
408411
this.$pollJob({
409412
jobId: response.createfirewallruleresponse.jobid,

0 commit comments

Comments
 (0)