diff --git a/app/models/Document.js b/app/models/Document.js index 1ec8134f9..0949d3925 100644 --- a/app/models/Document.js +++ b/app/models/Document.js @@ -206,6 +206,11 @@ export default class Document extends BaseModel { @action view = () => { + // we don't record views for documents in the trash + if (this.isDeleted) { + return; + } + return this.store.rootStore.views.create({ documentId: this.id }); };