Skip to content

Commit fc203a3

Browse files
committed
chore: Add error notification
1 parent 18d6334 commit fc203a3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/app/src/components/Dashboards/DashboardsListPage.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { useQueryState } from 'nuqs';
66
import {
77
ActionIcon,
88
Button,
9-
Card,
109
Container,
1110
Flex,
1211
Group,
@@ -108,6 +107,12 @@ export default function DashboardsListPage() {
108107
onSuccess: data => {
109108
Router.push(`/dashboards/${data.id}`);
110109
},
110+
onError: () => {
111+
notifications.show({
112+
message: 'Failed to create dashboard',
113+
color: 'red',
114+
});
115+
},
111116
},
112117
);
113118
}, [createDashboard]);

0 commit comments

Comments
 (0)