Skip to content

Commit

Permalink
fix(ui): delete message don't work anymore
Browse files Browse the repository at this point in the history
close #1458
  • Loading branch information
tchiotludo committed Jun 27, 2023
1 parent 067be4b commit a6f5cb4
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 19 deletions.
83 changes: 65 additions & 18 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"axios": "^0.21.1",
"axios-progress-bar": "^1.2.0",
"bootstrap": "^4.6.1",
"buffer": "^6.0.3",
"convert-units": "^2.3.4",
"css-loader": "^3.4.1",
"event-source-polyfill": "^1.0.31",
Expand Down
3 changes: 2 additions & 1 deletion client/src/containers/Topic/Topic/TopicData/TopicData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { capitalizeTxt, getClusterUIOptions } from '../../../../utils/functions'
import { setProduceToTopicValues, setUIOptions } from '../../../../utils/localstorage';
import Select from '../../../../components/Form/Select';
import * as LosslessJson from 'lossless-json';
import { Buffer } from 'buffer';

class TopicData extends Root {
state = {
Expand Down Expand Up @@ -459,7 +460,7 @@ class TopicData extends Root {
_deleteCompactMessage = () => {
const { selectedCluster, selectedTopic, compactMessageToDelete: message } = this.state;

const encodedkey = new Buffer(message.key).toString('base64');
const encodedkey = Buffer.from(message.key).toString('base64');
const deleteData = { partition: parseInt(message.partition), key: encodedkey };
this.removeApi(
uriTopicDataDelete(selectedCluster, selectedTopic, parseInt(message.partition), encodedkey),
Expand Down

0 comments on commit a6f5cb4

Please sign in to comment.