|
@ -25,7 +25,7 @@ function createGoalStore() { |
|
|
async load(filter: GoalFilter) { |
|
|
async load(filter: GoalFilter) { |
|
|
update(v => ({...v, loading: true, filter})); |
|
|
update(v => ({...v, loading: true, filter})); |
|
|
const goals = await stuffLogClient.listGoals(filter); |
|
|
const goals = await stuffLogClient.listGoals(filter); |
|
|
update(v => ({...v, loading: false, stale: false, goals: goals.reverse()})); |
|
|
|
|
|
|
|
|
update(v => ({...v, loading: false, stale: false, goals })); |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|