Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] A toast message with a successful process appeared when removing an agent of a group in Management/Groups and the agent appears in the agent list after refreshing the table #4167

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to the Wazuh app project will be documented in this file.

## Wazuh v4.3.4 - Kibana 7.10.2, 7.16.x, 7.17.x - Revision 4305

### Fixed

- Fixed a toast message with a successful process appeared when removing an agent of a group in `Management/Groups` and the agent appears in the agent list after refreshing the table [#4167](https://github.com/wazuh/wazuh-kibana-app/pull/4167)

## Wazuh v4.3.3 - Kibana 7.10.2, 7.16.x, 7.17.x - Revision 4304

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,7 @@ class WzGroupAgentsTable extends Component {
const { itemDetail } = this.props.state;
this.props.updateLoadingStatus(true);
try {
items.map(async (item) => {
await this.groupsHandler.deleteAgent(item.id, itemDetail.name);
});

await Promise.all(items.map(item => this.groupsHandler.deleteAgent(item.id, itemDetail.name)));
this.props.updateIsProcessing(true);
this.props.updateLoadingStatus(false);
this.props.updateReload();
Expand Down