Skip to content

Commit

Permalink
feat(ui): support other naming strategies in schema dropdowns on topi…
Browse files Browse the repository at this point in the history
…c produce (#1804)
  • Loading branch information
AlexisSouquiere committed Jun 5, 2024
1 parent 7d4cc70 commit 2507fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/containers/Topic/TopicProduce/TopicProduce.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ class TopicProduce extends Form {
let schema = await this.getApi(uriAllSchema(clusterId));
let keySchema = [];
let valueSchema = [];
schema.data.filter(s => s.includes('-key')).map(s => keySchema.push(s));
schema.data.filter(s => s.includes('-value')).map(s => valueSchema.push(s));
schema.data.filter(s => !s.includes('-value')).map(s => keySchema.push(s));
schema.data.filter(s => !s.includes('-key')).map(s => valueSchema.push(s));
this.setState({
keySchema: keySchema,
valueSchema: valueSchema,
Expand Down

0 comments on commit 2507fa1

Please sign in to comment.