From 57901b6844a7dcbfdd687804c87af0036ab25005 Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Thu, 10 Dec 2020 16:01:42 +0100 Subject: [PATCH] fix: handle legacy "client_updated_at" --- app/assets/javascripts/views/notes/notes_view.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/views/notes/notes_view.ts b/app/assets/javascripts/views/notes/notes_view.ts index 7062c5139..df3d0792a 100644 --- a/app/assets/javascripts/views/notes/notes_view.ts +++ b/app/assets/javascripts/views/notes/notes_view.ts @@ -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; }