Skip to content

Commit 35d0ec7

Browse files
committed
Update landscape in backend on landscape load
1 parent f6f07d2 commit 35d0ec7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/frontend/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ function App() {
3838
setTimeout(() => setSuccess(null), 3000);
3939
};
4040

41-
const handleLandscapeUpdated = (updatedLandscape: CleanedLandscape[]) => {
41+
const handleLandscapeUpdated = async (updatedLandscape: CleanedLandscape[]) => {
4242
setLandscape(updatedLandscape);
43+
await apiClient.updateLandscape(updatedLandscape);
4344
setError(null);
4445
};
4546

0 commit comments

Comments
 (0)