Skip to content

fix(frontend): remove duplicate KnowledgeRepository instance (#3969)#3977

Merged
mrveiss merged 1 commit intoDev_new_guifrom
issue-3969
Apr 8, 2026
Merged

fix(frontend): remove duplicate KnowledgeRepository instance (#3969)#3977
mrveiss merged 1 commit intoDev_new_guifrom
issue-3969

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 8, 2026

Problem: KnowledgeSearch.vue created a second KnowledgeRepository instance instead of using the shared singleton from @/models/repositories.

Solution: Import the module-level singleton knowledgeRepository instead of calling new KnowledgeRepository().

This ensures only one instance is created, preventing duplicate state and redundant API calls.

Changes:

  • Import knowledgeRepository singleton from @/models/repositories
  • Replace local instantiation with singleton reference

Closes #3969

@mrveiss mrveiss merged commit f52ccb6 into Dev_new_gui Apr 8, 2026
1 of 3 checks passed
@mrveiss mrveiss deleted the issue-3969 branch April 8, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant