Skip to content

Commit

Permalink
fix: prune on load
Browse files Browse the repository at this point in the history
  • Loading branch information
amiller68 committed Apr 15, 2024
1 parent 50aea0c commit cdaad60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stores/knowledge-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const useKnowledgeStore = defineStore(KNOWLEDGE_STORE_PINIA_KEY, {
actions: {
async load() {
await this.knowledgeStore.load();
await this.knowledgeStore.prune();
let defaultDocumentTitles = defaultKnowledge.map((doc) => doc.title);
const docs = Array.from(this.knowledgeStore.documents.values());
let documentTitles = docs.map((doc) => doc.title);
Expand Down

0 comments on commit cdaad60

Please sign in to comment.