Skip to content

Commit

Permalink
fix: handle legacy "client_updated_at"
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Dec 10, 2020
1 parent aca5ad0 commit 57901b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/assets/javascripts/views/notes/notes_view.ts
Expand Up @@ -424,7 +424,10 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
PrefKey.SortNotesBy,
CollectionSort.CreatedAt
);
if (sortBy === CollectionSort.UpdatedAt) {
if (
sortBy === CollectionSort.UpdatedAt ||
(sortBy as string) === "client_updated_at"
) {
/** Use UserUpdatedAt instead */
sortBy = CollectionSort.UpdatedAt;
}
Expand Down

0 comments on commit 57901b6

Please sign in to comment.