kir-dev / schbody

https://schbody.vercel.app
1 stars 0 forks source link

period with the id of 0 is fetched on periods page #54

Closed Tschonti closed 2 weeks ago

Tschonti commented 2 weeks ago

If you open the periods page, application-periods/0 is also called alongside application-periods. No idea why, but it could be fixed by checking the ID the swr hook and only enabling it if it's a valid id.

linear[bot] commented 2 weeks ago

KIR-54 period with the id of 0 is fetched on periods page

FearsomeRover commented 2 weeks ago

Good spot, it should be fixed now. It had to do with preloading the dialogs for period editing, and having a default 0 there as fallback.