Skip to content

Commit

Permalink
fix #1815
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuancelin committed Jan 9, 2024
1 parent 3e9923b commit 9ef4869
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions otoroshi/javascript/src/pages/DataExportersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,13 @@ export class NewExporterForm extends Component {
};

dataChange = (obj) => {
delete obj.config.clusterUri;
if (obj.config && obj.config.clusterUri) {
delete obj.config.clusterUri;
}
const ns = { ...this.props.value, ...obj };
delete ns.config.clusterUri;
if (ns.config && ns.config.clusterUri) {
delete ns.config.clusterUri;
}
this.props.onChange(ns);
};

Expand Down

0 comments on commit 9ef4869

Please sign in to comment.