Skip to content

Commit 5d0dec5

Browse files
committed
fix(website): errors are not handled correctly when saving dashboard
1 parent 4fde091 commit 5d0dec5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

website/src/pages/dashboard-editor-page/page-content.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,13 @@ export const DashboardEditorPageContent = observer(
6161
});
6262
await store.currentDetail?.content.load();
6363
} catch (error) {
64+
console.error(error);
6465
updateNotification({
6566
id: 'for-updating',
66-
title: 'Successful',
67+
title: 'Failed',
6768
// @ts-expect-error type of error
6869
message: error.message,
69-
color: 'green',
70+
color: 'red',
7071
});
7172
}
7273
};

0 commit comments

Comments
 (0)