Skip to content

Commit

Permalink
fix(ui): don't disabled empty for compact,delete topic
Browse files Browse the repository at this point in the history
close #431
  • Loading branch information
tchiotludo committed Apr 4, 2023
1 parent 315fcbd commit 4a242e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/containers/Topic/Topic/Topic.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Topic extends Root {
canEmptyTopic = () => {
const { configs } = this.state;
const res = configs.filter(config => config.name === 'cleanup.policy');
if (res && res.length === 1 && res[0].value === 'delete') return true;
if (res && res.length === 1 && res[0].value.includes('delete')) return true;
return false;
};

Expand Down

0 comments on commit 4a242e6

Please sign in to comment.