Skip to content

Commit 9421b6f

Browse files
medy-iomarcelkooi
andauthored
US: reordering urgency on queue table (#245)
Co-authored-by: Marcel Kooi <1marcelkooi@gmail.com>
1 parent 0f9a154 commit 9421b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/stores/QueueStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class QueueStore {
7474

7575
@action
7676
setQueue(queueIndex, data) {
77-
this.queues[queueIndex] = data
77+
this.queues[queueIndex] = data.sort((a, b) => +b.urgency[1] - +a.urgency[1])
7878
}
7979

8080
//Return the longest wait time in minutes

0 commit comments

Comments
 (0)