mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 22:19:48 +00:00
eslint: Fix unicorn/prefer-array-find.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -536,8 +536,7 @@ export function get_last_restorable_draft_based_on_compose_state():
|
|||||||
);
|
);
|
||||||
return drafts_for_compose_state
|
return drafts_for_compose_state
|
||||||
.sort((draft_a, draft_b) => draft_a.updatedAt - draft_b.updatedAt)
|
.sort((draft_a, draft_b) => draft_a.updatedAt - draft_b.updatedAt)
|
||||||
.filter((draft) => !draft.is_sending_saving && draft.drafts_version >= 1)
|
.findLast((draft) => !draft.is_sending_saving && draft.drafts_version >= 1);
|
||||||
.pop();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function remove_old_drafts(): void {
|
export function remove_old_drafts(): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user