Skip to content

Commit 4c8ab5c

Browse files
author
Matt Stone
committed
fixup! Update draw page to save polygon
1 parent b29add9 commit 4c8ab5c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/src/components/DrawTools/useEditingPolygon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { useUpdateBoundaryShapeMutation } from '../../api/boundaries';
1111
import {
1212
useBoundaryId,
1313
useReverseQueue,
14-
useTrailingDebouceCallback,
14+
useTrailingDebounceCallback,
1515
} from '../../hooks';
1616
import api from '../../api/api';
1717

@@ -65,7 +65,7 @@ export default function useEditingPolygon() {
6565
queryArgs: id,
6666
});
6767

68-
const updatePolygonFromDrawEvent = useTrailingDebouceCallback({
68+
const updatePolygonFromDrawEvent = useTrailingDebounceCallback({
6969
callback: event => {
7070
updateShape({ id, shape: getShapeFromDrawEvent(event) })
7171
.unwrap()

src/app/src/hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function useBoundaryId() {
117117
return useParams().boundaryId;
118118
}
119119

120-
export function useTrailingDebouceCallback({
120+
export function useTrailingDebounceCallback({
121121
callback,
122122
immediateCallback,
123123
interval,

0 commit comments

Comments
 (0)