fix: Knowledge page uses window.location.reload() for list refresh #27
Labels
No labels
backend
bug
completed
documentation
duplicate
enhancement
feature
frontend
good first issue
help wanted
in-progress
invalid
performance
phase-1
Phase1
Phase2
Phase3
planning
question
refactor
security
test
testing
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Kalle/ATM#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The knowledge page (
src/app/[locale]/knowledge/page.tsx) useswindow.location.reload()inhandleSaveComplete()after creating/editing a knowledge entry. This causes:Solution
Replace with proper React state management:
refreshKeystate counterFiles Affected
src/app/[locale]/knowledge/page.tsx- Replace reload with state updatesrc/components/knowledge/KnowledgeList.tsx- Accept refresh trigger propFixed in commit
36f3b12