mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
js: Convert _.values to Object.values.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
7ca52f1e80
commit
9f07cf6b0e
@@ -299,7 +299,7 @@ exports.launch = function () {
|
|||||||
draft.id = id;
|
draft.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
const unsorted_raw_drafts = _.values(data);
|
const unsorted_raw_drafts = Object.values(data);
|
||||||
|
|
||||||
const sorted_raw_drafts = unsorted_raw_drafts.sort(function (draft_a, draft_b) {
|
const sorted_raw_drafts = unsorted_raw_drafts.sort(function (draft_a, draft_b) {
|
||||||
return draft_b.updatedAt - draft_a.updatedAt;
|
return draft_b.updatedAt - draft_a.updatedAt;
|
||||||
|
|||||||
Reference in New Issue
Block a user