[FE-data] Add error handling when database and dataset creation or modification fails #239

This commit is contained in:
SA K
2022-11-07 18:47:04 +09:00
parent 24d70e3892
commit 7dc719e3e6
3 changed files with 9 additions and 1 deletions

View File

@@ -206,6 +206,8 @@ const DataSet = () => {
navigate('/data');
},
});
} else {
alert.info('데이터셋 수정에 실패했습니다.');
}
});
} else {
@@ -217,6 +219,8 @@ const DataSet = () => {
navigate('/data');
},
});
} else {
alert.info('데이터셋 생성에 실패했습니다.');
}
});
}

View File

@@ -178,6 +178,8 @@ function DataSource() {
navigate('/data');
},
});
} else {
alert.info('데이터베이스 저장에 실패했습니다.');
}
});
} else {
@@ -189,6 +191,8 @@ function DataSource() {
navigate('/data');
},
});
} else {
alert.info('데이터베이스 저장에 실패했습니다.');
}
});
}

View File

@@ -279,7 +279,7 @@ const WidgetViewer = props => {
module = (
<React.Fragment>
<NumericBoard {...chartProps} />
<LineChart {...chartProps} seriesOp={{ areaStyle: {} }} />;
<LineChart {...chartProps} seriesOp={{ areaStyle: {} }} />
</React.Fragment>
);
break;