Skip to content

Commit 5a896f0

Browse files
author
David Code Howard
authored
fix: Don't submit locationSource on create site (#477)
* fix: Don't submit locationSource on create site This allows me to create a site locally, and logically makes sense. However I'm not sure why Typescript does not pick up on this error. * fix: Try to appease linter * fix: Fix github warning * fix: Use improved syntax
1 parent b114122 commit 5a896f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev-client/src/components/sites/CreateSiteView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export const CreateSiteView = ({
190190
const navigation = useNavigation();
191191

192192
const onSave = useCallback(
193-
async (form: FormState) => {
193+
async ({locationSource: _, ...form}: FormState) => {
194194
const {coords, ...site} = validationSchema.cast(form);
195195
const createdSite = await createSiteCallback({
196196
...site,

0 commit comments

Comments
 (0)