From 42a9762a23ea56faf2e4a66d5c36d5492039bbc0 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Tue, 21 Feb 2023 15:18:33 -0500 Subject: [PATCH] fix bug for failed notebook create (#282) * fix bug for failed notebook create Signed-off-by: Derek Ho * revert other changes Signed-off-by: Derek Ho --------- Signed-off-by: Derek Ho --- public/components/notebooks/components/main.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/public/components/notebooks/components/main.tsx b/public/components/notebooks/components/main.tsx index 36d81a96b..cd70332d2 100644 --- a/public/components/notebooks/components/main.tsx +++ b/public/components/notebooks/components/main.tsx @@ -95,6 +95,7 @@ export class Main extends React.Component { createNotebook = (newNoteName: string) => { if (newNoteName.length >= 50 || newNoteName.length === 0) { this.setToast('Invalid notebook name', 'danger'); + window.location.assign('#/notebooks'); return; } const newNoteObject = {