Skip to content

Commit

Permalink
Remove unused smooth scroll effect for pages element in EncounterNote…
Browse files Browse the repository at this point in the history
…sTab
  • Loading branch information
shauryag2002 committed Jan 12, 2025
1 parent 21200d2 commit a78bf53
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/pages/Encounters/tabs/EncounterNotesTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,6 @@ export const EncounterNotesTab = ({ encounter }: EncounterTabProps) => {
}),
});

useEffect(() => {
const pagesElement = document.getElementById("pages");
if (pagesElement) {
pagesElement.scrollIntoView({ behavior: "smooth" });
}
}, []);
// Auto-select first thread
useEffect(() => {
if (threadsData?.results.length && !selectedThread) {
Expand Down

0 comments on commit a78bf53

Please sign in to comment.