Skip to content

Commit

Permalink
suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
UdaySagar-Git committed Dec 17, 2024
1 parent 59625d2 commit ab45147
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Facility/PatientNotesSlideover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default function PatientNotesSlideover(props: PatientNotesProps) {
setState((prevState) => ({
...prevState,
notes:
state.cPage === 1
prevState.cPage === 1
? notesData.results
: [...prevState.notes, ...notesData.results],
totalPages: Math.ceil(notesData.count / RESULTS_PER_PAGE_LIMIT),
Expand Down
2 changes: 1 addition & 1 deletion src/components/Files/FileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export const FileUpload = (props: FileUploadProps) => {
authUser.user_type === "DistrictAdmin" ||
authUser.user_type === "StateAdmin"
}
archivable={tab !== "DISCHARGE_SUMMARY"}
archivable={!["DISCHARGE_SUMMARY", "PATIENT_NOTES"].includes(tab)}
/>
))}
{!(fileQuery?.data?.results || []).length && (
Expand Down

0 comments on commit ab45147

Please sign in to comment.