Open wpgoble opened 10 months ago
Confirmed that this is related to the caching of the areas in the local storage. When the areas are requested each time and not retrieved from cache there is no duplication.
Comment by braughtg Tuesday Jun 07, 2022 at 13:16 GMT
Issue is that the call to getAllPages appends new responses to the provided array, it does not clear the array. Thus, when the cached version of the area response is used, the subsequent call to the API to check for updates adds to the response, it does not replace the response.
Comment by braughtg Tuesday Jun 07, 2022 at 13:25 GMT
The Area drop down in the Seeding Input form contains duplicates. The same list of areas appears to be being appended to the dropdown multiple times. Each Area should appear in this list only one time.
Steps to Reproduce
Based on the above behavior this appears to have something to do with the way the caching is done for areas. It should be compared to what is being done for the crops which are not exhibiting the same behavior.
Issue by braughtg Tuesday Jun 07, 2022 at 13:06 GMT Originally opened as https://github.com/DickinsonCollege/FarmData2/issues/460