From 1782c08195a92ce19029fb6b4cd2535f9b42dd69 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 5 May 2022 23:51:47 -0700 Subject: [PATCH] fix: Touch lastViewedAt timestamp on document to prevent flash of order repositioning --- app/models/Document.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/Document.ts b/app/models/Document.ts index dd4bc375a..bbcd84121 100644 --- a/app/models/Document.ts +++ b/app/models/Document.ts @@ -285,6 +285,8 @@ export default class Document extends ParanoidModel { return; } + this.lastViewedAt = new Date().toString(); + return this.store.rootStore.views.create({ documentId: this.id, });