Skip to content

Fix Kosovo activity submit resetting to step 1 - #3708

Merged
bernardhanna merged 1 commit into
masterfrom
fix/kosovo-geocode-submit-500
Nov 25, 2026
Merged

bernardhanna merged 1 commit into
masterfrom
fix/kosovo-geocode-submit-500

Conversation

@bernardhanna

Copy link
Copy Markdown
Collaborator

Summary

  • Guard ArcGIS blank Country for Kosovo so address autocomplete no longer throws and drops geoposition
  • Send geoposition: null instead of [], and harden EventsQuery so bad/empty coords become 0,0 instead of a 500
  • Surface a visible error when submit fails for non-validation reasons

Test plan

  • On /add, choose Open online, pick a Kosovo address from autocomplete (e.g. Drenas), complete the form with Country = Kosovo, submit
  • Confirm success (step 4 / activity created) instead of silent return to step 1
  • Confirm a non-Kosovo address still works
  • Optional: open-online with empty address still submits

Made with Cursor

ArcGIS returns a blank Country for Kosovo addresses, which threw in autocomplete, left geoposition as [], and caused EventsQuery explode() to 500.

Co-authored-by: Cursor <cursoragent@cursor.com>
@bernardhanna
bernardhanna merged commit 56e9814 into master Nov 25, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant