Skip to content

Commit

Permalink
[FIX] Maximum call stack size exceeded error exporting key-value pa…
Browse files Browse the repository at this point in the history
…irs of a CDB List (#3738)

* fix: Fixed call stack size exceeded exportingo to CSV a key-value pairs of CDB List

* changelog: Add PR to changelog
  • Loading branch information
Desvelao authored Dec 17, 2021
1 parent 5f305c9 commit 8079db2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Fixing bug in security User flyout nonexistant unsubmitted changes warning [#3731](https://github.com/wazuh/wazuh-kibana-app/pull/3731)
- Fixing redirect to new tab when click in a link [#3732](https://github.com/wazuh/wazuh-kibana-app/pull/3732)
- Fixed missing settings in `Management/Configuration/Global configuration/Global/Main settings` [#3737](https://github.com/wazuh/wazuh-kibana-app/pull/3737)
- Fixed `Maximum call stack size exceeded` error exporting key-value pairs of a CDB List [#3738](https://github.com/wazuh/wazuh-kibana-app/pull/3738)

## Wazuh v4.2.5 - Kibana 7.10.2, 7.11.2, 7.12.1, 7.13.4, 7.14.2 - Revision 4206

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ class WzListEditor extends Component {
const addingNew = name === false || !name;
const listName = this.state.newListName || name;

const exportCsv = async () => {
const exportToCsv = async () => {
try {
this.setState({ generatingCsv: true });
await exportCsv(
Expand All @@ -558,7 +558,7 @@ class WzListEditor extends Component {
this.setState({ generatingCsv: false });
} catch (error) {
const options = {
context: `${WzListEditor.name}.exportCsv`,
context: `${WzListEditor.name}.exportToCsv`,
level: UI_LOGGER_LEVELS.ERROR,
severity: UI_ERROR_SEVERITIES.BUSINESS,
error: {
Expand Down Expand Up @@ -590,7 +590,7 @@ class WzListEditor extends Component {
iconType="exportAction"
isDisabled={this.state.generatingCsv}
isLoading={this.state.generatingCsv}
onClick={async () => exportCsv()}
onClick={async () => exportToCsv()}
>
Export formatted
</EuiButtonEmpty>
Expand Down

0 comments on commit 8079db2

Please sign in to comment.