Skip to content

client: don't fetch the budget twice when changing budget date

Benjamin Bouvier requested to merge bnjbvr/kresus:fix-budgets-refetch into master

This was sending the fetch-budget request twice:

  • once in setPeriod
  • once because the effect would be triggered, noticing budgets haven't been set for this particular date combination, thus it would fetch them from the server.

Instead, make setPeriod a pure UI request, and just rely on the effect for fetching the budgets.

Merge request reports