fix: prevent success toast when workspace selection is cancelled

This commit is contained in:
DeviSriSaiCharan
2026-05-25 20:57:11 +05:30
parent 87d97ba0ef
commit 39308bc03c

View File

@@ -152,8 +152,10 @@ const AppTitleBar = () => {
const handleOpenWorkspace = async () => {
try {
await dispatch(openWorkspaceDialog());
const result = await dispatch(openWorkspaceDialog());
if (result) {
toast.success('Workspace opened successfully');
}
} catch (error) {
toast.error(error.message || 'Failed to open workspace');
}