diff --git a/client/src/containers/Topic/TopicProduce/TopicProduce.jsx b/client/src/containers/Topic/TopicProduce/TopicProduce.jsx index b31f39ffc..585378f5c 100644 --- a/client/src/containers/Topic/TopicProduce/TopicProduce.jsx +++ b/client/src/containers/Topic/TopicProduce/TopicProduce.jsx @@ -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,