From 30bb7bcde5351b56cef0697e75deb0c4e7f1771b Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sat, 21 Oct 2017 19:29:14 -0700 Subject: [PATCH] Fixes --- frontend/components/Layout/components/SidebarCollections.js | 3 +-- frontend/models/Document.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/components/Layout/components/SidebarCollections.js b/frontend/components/Layout/components/SidebarCollections.js index a40a2d0ea9..d49c7cc72f 100644 --- a/frontend/components/Layout/components/SidebarCollections.js +++ b/frontend/components/Layout/components/SidebarCollections.js @@ -133,13 +133,12 @@ type DocumentLinkProps = { history: Object, activeDocument: ?Document, activeDocumentRef: HTMLElement => void, - prefetchDocument: string => void, + prefetchDocument: (documentId: string) => void, depth: number, }; const DocumentLink = observer( ({ - documents, document, activeDocument, activeDocumentRef, diff --git a/frontend/models/Document.js b/frontend/models/Document.js index b6a3455d50..dbde53e3c0 100644 --- a/frontend/models/Document.js +++ b/frontend/models/Document.js @@ -250,6 +250,7 @@ class Document extends BaseModel { if (dirty) this.hasPendingChanges = true; this.data = data; extendObservable(this, data); + this.fetchedAt = new Date(); } constructor(data?: Object = {}) { @@ -257,7 +258,6 @@ class Document extends BaseModel { this.updateData(data); this.errors = stores.errors; - this.fetchedAt = new Date(); } }