Skip to content

Commit

Permalink
fix issue with exemplar docs
Browse files Browse the repository at this point in the history
  • Loading branch information
scytacki committed Sep 17, 2024
1 parent 785fd91 commit a76b815
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/models/stores/sorted-documents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ export class SortedDocuments {

get exemplarMetadataDocs() {
const docsMap = MetadataDocMapModel.create();
// We are just using this map for consistency with the other maps
// We don't need the benefits of MST's actions
unprotect(docsMap);

// OPTIMIZE: this isn't efficient. Every time a new document is added to stores.documents
// this exemplarDocuments will be recomputed even though its value will not have changed.
// So then all of these exemplar docs will get recreated.
Expand Down

0 comments on commit a76b815

Please sign in to comment.