Fix remaining ProjectListResponse reference in TimeEntryFormView
This commit is contained in:
@@ -80,11 +80,10 @@ struct TimeEntryFormView: View {
|
|||||||
|
|
||||||
private func loadProjects() async {
|
private func loadProjects() async {
|
||||||
do {
|
do {
|
||||||
let response: ProjectListResponse = try await apiClient.request(
|
projects = try await apiClient.request(
|
||||||
endpoint: APIEndpoint.projects,
|
endpoint: APIEndpoint.projects,
|
||||||
authenticated: true
|
authenticated: true
|
||||||
)
|
)
|
||||||
projects = response.projects
|
|
||||||
} catch {
|
} catch {
|
||||||
self.error = error.localizedDescription
|
self.error = error.localizedDescription
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user