Skip to content

Commit

Permalink
fixed dbtn disabled state
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-wu1 committed Jul 28, 2023
1 parent a3f83d8 commit 7c70284
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/pages/dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ function Dashboard() {
terosDataObj.timestamp = terosDataObj.timestamp.map((dateTime) =>
DateTime.fromHTTP(dateTime)
);
console.log(terosDataObj);
setVWCChartData({
labels: terosDataObj.timestamp,
datasets: [
Expand Down Expand Up @@ -201,7 +202,9 @@ function Dashboard() {
}, [selectedCell]);

useEffect(() => {
setDBtnDisabled(false);
if (Object.keys(cellData).length != 0) {
setDBtnDisabled(false);
}
}, [setCellData]);

useEffect(() => {
Expand Down

0 comments on commit 7c70284

Please sign in to comment.