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)
|
||||
// Reload goals to get the full updated object
|
||||
goal = try await api.getGoals(date: Date().apiDateString)
|
||||
populateFields(from: goal)
|
||||
let updated = try await api.getGoalsForDate(date: Date().apiDateString)
|
||||
goal = updated
|
||||
populateFields(from: updated)
|
||||
saveSuccess = true
|
||||
} catch {
|
||||
self.error = error.localizedDescription
|
||||
|
||||
Reference in New Issue
Block a user