fix: Archived and then deleted documents appear in archived tab after loading trash

This commit is contained in:
Tom Moor
2019-12-07 12:39:49 -08:00
parent cbd9ff2dd9
commit 5731ff34a4

View File

@ -117,7 +117,7 @@ export default class DocumentsStore extends BaseStore<Document> {
get archived(): Document[] {
return filter(
orderBy(this.orderedData, 'archivedAt', 'desc'),
d => d.archivedAt
d => d.archivedAt && !d.deletedAt
);
}