Changed project ordering on frontend
This commit is contained in:
@@ -10,6 +10,6 @@ internal sealed class ProjectRepository(IHttpClientFactory factory) : IProjectRe
|
|||||||
if (!response.IsSuccessStatusCode) return [];
|
if (!response.IsSuccessStatusCode) return [];
|
||||||
|
|
||||||
var data = await response.Content.ReadFromJsonAsync<IEnumerable<Project>>(ct);
|
var data = await response.Content.ReadFromJsonAsync<IEnumerable<Project>>(ct);
|
||||||
return data ?? [];
|
return data?.OrderByDescending(p => p.OrderIndex) ?? Enumerable.Empty<Project>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user