Skip to content

Commit dbbb009

Browse files
authored
Merge pull request #1222 from merico-dev/1212-errors-are-not-handled-correctly-when-saving-dashboard
1212 errors are not handled correctly when saving dashboard
2 parents 4fde091 + 66b2391 commit dbbb009

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtable/api",
3-
"version": "10.42.1",
3+
"version": "10.42.2",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtable/dashboard",
3-
"version": "10.42.1",
3+
"version": "10.42.2",
44
"license": "Apache-2.0",
55
"publishConfig": {
66
"access": "public",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtable/root",
3-
"version": "10.42.1",
3+
"version": "10.42.2",
44
"private": true,
55
"workspaces": [
66
"api",

settings-form/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtable/settings-form",
3-
"version": "10.42.1",
3+
"version": "10.42.2",
44
"license": "Apache-2.0",
55
"publishConfig": {
66
"access": "public",

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@devtable/website",
33
"private": true,
44
"license": "Apache-2.0",
5-
"version": "10.42.1",
5+
"version": "10.42.2",
66
"scripts": {
77
"dev": "vite",
88
"preview": "vite preview"

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)