The current implementation of the client and location logic is causing a bug on the review process, this refactor is to fix that issue and also make the frontend more efficient.
To reproduce the issue:
After registering a seedlot, go to the review page
Click the Edit seedlot button
On the Collection section, try to edit agency field
The input maybe wrongly filled (intermittent issue, probably due to async calls)
The current implementation of the client and location logic is causing a bug on the review process, this refactor is to fix that issue and also make the frontend more efficient.
To reproduce the issue:
Edit seedlot
button