Skip to content

Commit

Permalink
[FIXED] consumer edit going from 1 subject filter to more than one
Browse files Browse the repository at this point in the history
  • Loading branch information
jnmoyne committed Sep 27, 2023
1 parent e972a82 commit a732f6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/consumer_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,10 @@ func (c *consumerCmd) editAction(pc *fisk.ParseContext) error {

if len(c.filterSubjects) == 1 {
ncfg.FilterSubject = c.filterSubjects[0]
ncfg.FilterSubjects = nil
} else if len(c.filterSubjects) > 1 {
ncfg.FilterSubjects = c.filterSubjects
ncfg.FilterSubject = ""
}

if c.replicas > 0 {
Expand Down

0 comments on commit a732f6e

Please sign in to comment.