Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/ewanc26/pkgs. my pkgs monorepo docs.ewancroft.uk/projects/pkgs
monorepo nix
Something went wrong. Try again.
fix(tourmaline): correct mostPopularYear/Month fallback on empty data master
The fallback for zero-scrobble data (e.g. a date-range filter with no matches) was an object literal ({year: "N/A", count: 0}), but the code that consumes it indexes with [0]/[1] as if it were the [key, count] tuple sortedYears/monthlyCounts entries actually are. On that fallback path it silently produced {year: undefined, count: undefined} instead of the intended placeholder.
Author Ewan Croft Date (Aug 13, 2026, 1:44 PM UTC) Commit cdbaf017 cdbaf017f941ea4800db448a0f16ba5049a42a90 Parent 98ebb959 98ebb95939c27247b584bf485996bac370c3eb55