Skip to content

Commit

Permalink
fix: catch error and do not jump in split page
Browse files Browse the repository at this point in the history
Signed-off-by: suzhou <[email protected]>
  • Loading branch information
SuZhou-Joe committed Jan 10, 2023
1 parent 7c16d1f commit 8ab6bd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ export default class SplitIndexForm extends Component<SplitIndexComponentProps>
}
try {
await this.props.onSplitIndex(targetIndex, others);
this.props.onCancel();
} catch (err) {
// no need to log anything since getIndexSettings will log the error
}
this.props.onCancel();
};

render() {
Expand Down

0 comments on commit 8ab6bd0

Please sign in to comment.