Skip to content
Snippets Groups Projects
Commit dc1db276 authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

fix(modal): Sort prices by fluid so it displays in the right order

parent d5b411cf
No related branches found
No related tags found
3 merge requests!563chore(release): 1.7.4,!558chore(release): 1.7.3,!553Resolve "Erreur prix du gaz ?"
......@@ -52,6 +52,7 @@ export default class FluidPricesService {
public async getAllLastPrices(): Promise<FluidPrice[]> {
const query: QueryDefinition = Q(FLUIDPRICES_DOCTYPE)
.where({ endDate: { $eq: null } })
.sortBy([{ fluidType: 'asc' }])
.limitBy(3)
const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment