Skip to content

Commit

Permalink
fix(entities-consumer-groups): url for AddToGroupModal (#1588)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder authored Sep 2, 2024
1 parent f849e09 commit 7b68ed5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const {
results,
} = useDebouncedFilter(
props.config,
endpoints.list[props.config.app].all,
endpoints.list[props.config.app].forModal,
'',
{
fetchedItemsKey: 'data',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ export default {
list: {
konnect: {
all: `${konnectBaseApiUrl}/consumer_groups`,
forModal: `${konnectBaseApiUrl}/consumer_groups`,
forConsumer: `${konnectBaseApiUrl}/consumers/{consumerId}/consumer_groups`,
oneForConsumer: `${konnectBaseApiUrl}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`,
},
kongManager: {
all: `${KMBaseApiUrl}/consumer_groups?counter=true`,
all: `${KMBaseApiUrl}/consumer_groups?counter=true`, // we need counter=true to get consumers_count in consumer group list
forModal: `${KMBaseApiUrl}/consumer_groups`,
forConsumer: `${KMBaseApiUrl}/consumers/{consumerId}/consumer_groups`,
oneForConsumer: `${KMBaseApiUrl}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`,
},
Expand Down

0 comments on commit 7b68ed5

Please sign in to comment.