fix: getGoalsForDate method name, non-optional goal
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -45,8 +45,9 @@ final class GoalsViewModel {
|
|||||||
)
|
)
|
||||||
try await api.updateGoals(request)
|
try await api.updateGoals(request)
|
||||||
// Reload goals to get the full updated object
|
// Reload goals to get the full updated object
|
||||||
goal = try await api.getGoals(date: Date().apiDateString)
|
let updated = try await api.getGoalsForDate(date: Date().apiDateString)
|
||||||
populateFields(from: goal)
|
goal = updated
|
||||||
|
populateFields(from: updated)
|
||||||
saveSuccess = true
|
saveSuccess = true
|
||||||
} catch {
|
} catch {
|
||||||
self.error = error.localizedDescription
|
self.error = error.localizedDescription
|
||||||
|
|||||||
Reference in New Issue
Block a user