uncovering-world / track-your-regions

Track Your Regions: a web tool for travellers to discover and track areas of interest. Work In Progress...
http://uncovering.world
Apache License 2.0
3 stars 4 forks source link

Refactor `fetchSubregions` to return consistent empty array. #189

Closed OhmSpectator closed 10 months ago

OhmSpectator commented 10 months ago

Description

In the fetchSubregions function, there is a TODO comment suggesting that we should return an empty array instead of null when the response status is 204 (No Content). This change will make the return values consistent across different scenarios, enhancing the predictability and reliability of the function.

Requirements