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

Merge/index operation #535

Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export default class SplitIndexForm extends Component<SplitIndexComponentProps>
"data-test-subj": "numberOfReplicasInput",
placeholder: "Specify number of replica",
min: 0,
value: 1,
},
},
},
Expand Down
5 changes: 2 additions & 3 deletions public/pages/SplitIndex/container/SplitIndex/SplitIndex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,9 @@ export class SplitIndex extends Component<SplitIndexProps> {
} catch (err) {
// no need to log anything since getIndexSettings will log the error
this.onCancel();
return;
}

if (!sourceIndex) {
this.onCancel();
}
this.setState({
sourceIndex,
});
Expand All @@ -87,6 +85,7 @@ export class SplitIndex extends Component<SplitIndexProps> {
} catch (err) {
// no need to log anything since getIndexSettings will log the error
this.onCancel();
return;
}
const reasons = [];
const sourceSettings = get(sourceIndexSettings, [sourceIndex.index, "settings"]);
Expand Down