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] Don't open the main menu when changing the selected API or index pattern #3440

Merged
Merged
Show file tree
Hide file tree
Changes from 2 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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ All notable changes to the Wazuh app project will be documented in this file.

### Fixed

- Fixed creation of log files [#3384](https://github.com/wazuh/wazuh-kibana-app/pull/3384)
- Fixed creation of log files [#3384](https://github.com/wazuh/wazuh-kibana-app/pull/3384)
- Don't open the main menu when changing the seleted API or index pattern [#3440](https://github.com/wazuh/wazuh-kibana-app/pull/3440)

## Wazuh v4.2.1 - Kibana 7.10.2 , 7.11.2 - Revision 4202

Expand Down
5 changes: 0 additions & 5 deletions public/components/wz-menu/wz-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@ export const WzMenu = withWindowSize(class WzMenu extends Component {

if (newPattern?.id === 'selectIndexPatternBar') {
this.updatePatternAndApi();
} else {
this.switchMenuOpened();
}
} catch (error) {
this.showToast('danger', 'Error', error, 4000);
Expand Down Expand Up @@ -320,9 +318,6 @@ export const WzMenu = withWindowSize(class WzMenu extends Component {
AppState.setCurrentAPI(
JSON.stringify({ name: apiData[0].manager, id: apiId.value })
);
if (apiId?.id !== 'selectAPIBar') {
this.switchMenuOpened();
}

if (this.state.currentMenuTab !== 'wazuh-dev') {
this.router.reload();
Expand Down