Skip to content

Commit

Permalink
Fixed little bug to reset original values when saved
Browse files Browse the repository at this point in the history
  • Loading branch information
santi-g-s committed May 21, 2023
1 parent 72d6e45 commit eb726b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/AdminDashboard/CityDataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ function CityDataGrid() {
setAlert(`Error saving changes`, AlertType.ERROR);
} else {
setAlert(`Successfully saved changes`, AlertType.SUCCESS);
setOriginalIsAccredited(isAccredited);
setOriginalRows(rows);
}
});
};
Expand Down

0 comments on commit eb726b9

Please sign in to comment.