Refactored months data structure from object to array for better performance and cleaner iteration. Fixed crash when availableYears array is empty by adding proper guards and fallback to current year. Changes: - MonthLocationList: Changed months prop from object to array type - HomePage: Refactored reduce logic to build array instead of object - HomePage: Added empty database handling in year selection logic - HomePage: Added early returns for invalid year params in empty DB Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5.6 KiB
5.6 KiB