Fixes
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user