diff --git a/public/pages/SplitIndex/components/SplitIndexForm/SplitIndexForm.tsx b/public/pages/SplitIndex/components/SplitIndexForm/SplitIndexForm.tsx index acb493a00..0caf5cb5b 100644 --- a/public/pages/SplitIndex/components/SplitIndexForm/SplitIndexForm.tsx +++ b/public/pages/SplitIndex/components/SplitIndexForm/SplitIndexForm.tsx @@ -140,7 +140,6 @@ export default class SplitIndexForm extends Component "data-test-subj": "numberOfReplicasInput", placeholder: "Specify number of replica", min: 0, - value: 1, }, }, }, diff --git a/public/pages/SplitIndex/container/SplitIndex/SplitIndex.tsx b/public/pages/SplitIndex/container/SplitIndex/SplitIndex.tsx index 146f0b32b..e59995511 100644 --- a/public/pages/SplitIndex/container/SplitIndex/SplitIndex.tsx +++ b/public/pages/SplitIndex/container/SplitIndex/SplitIndex.tsx @@ -67,11 +67,9 @@ export class SplitIndex extends Component { } catch (err) { // no need to log anything since getIndexSettings will log the error this.onCancel(); + return; } - if (!sourceIndex) { - this.onCancel(); - } this.setState({ sourceIndex, }); @@ -87,6 +85,7 @@ export class SplitIndex extends Component { } 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"]);