From 39308bc03cb158777cb16dd7339192e9cc777029 Mon Sep 17 00:00:00 2001 From: DeviSriSaiCharan Date: Mon, 25 May 2026 20:57:11 +0530 Subject: [PATCH] fix: prevent success toast when workspace selection is cancelled --- packages/bruno-app/src/components/AppTitleBar/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/bruno-app/src/components/AppTitleBar/index.js b/packages/bruno-app/src/components/AppTitleBar/index.js index 3551556dd..2e2dff474 100644 --- a/packages/bruno-app/src/components/AppTitleBar/index.js +++ b/packages/bruno-app/src/components/AppTitleBar/index.js @@ -152,8 +152,10 @@ const AppTitleBar = () => { const handleOpenWorkspace = async () => { try { - await dispatch(openWorkspaceDialog()); - toast.success('Workspace opened successfully'); + const result = await dispatch(openWorkspaceDialog()); + if (result) { + toast.success('Workspace opened successfully'); + } } catch (error) { toast.error(error.message || 'Failed to open workspace'); }