Skip to content

Commit

Permalink
fix bug for failed notebook create (opensearch-project#282)
Browse files Browse the repository at this point in the history
* fix bug for failed notebook create

Signed-off-by: Derek Ho <[email protected]>

* revert other changes

Signed-off-by: Derek Ho <[email protected]>

---------

Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho authored Feb 21, 2023
1 parent 0527730 commit 42a9762
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/components/notebooks/components/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export class Main extends React.Component<MainProps, MainState> {
createNotebook = (newNoteName: string) => {
if (newNoteName.length >= 50 || newNoteName.length === 0) {
this.setToast('Invalid notebook name', 'danger');
window.location.assign('#/notebooks');
return;
}
const newNoteObject = {
Expand Down

0 comments on commit 42a9762

Please sign in to comment.