@@ -69,7 +69,7 @@ export const EncounterList: React.FC<EncounterListProps> = ({
6969 onFormSave,
7070 } = useEncounterRows ( patientUuid , encounterType , filter ) ;
7171 const { moduleName, workspaceWindowSize, displayText, hideFormLauncher } = launchOptions ;
72-
72+
7373 const defaultActions = useMemo (
7474 ( ) => [
7575 {
@@ -126,7 +126,7 @@ export const EncounterList: React.FC<EncounterListProps> = ({
126126
127127 const constructPaginatedTableRows = useCallback (
128128 ( encounters : OpenmrsEncounter [ ] , currentPage : number , pageSize : number ) => {
129- const startIndex = ( currentPage - 1 ) * pageSize ;
129+ const startIndex = ( currentPage - 1 ) * pageSize ;
130130 const paginatedEncounters = [ ] ;
131131 for ( let i = startIndex ; i < startIndex + pageSize ; i ++ ) {
132132 if ( i < encounters . length ) {
@@ -135,7 +135,7 @@ export const EncounterList: React.FC<EncounterListProps> = ({
135135 }
136136 const rows = paginatedEncounters . map ( ( encounter , encounterIndex : number ) => {
137137 const tableRow : { id : string ; actions : any } = { id : encounter . uuid , actions : null } ;
138- // inject launch actions
138+ // inject launch actions
139139 encounter [ 'launchFormActions' ] = {
140140 editEncounter : ( ) =>
141141 launchEncounterForm (
@@ -182,7 +182,7 @@ export const EncounterList: React.FC<EncounterListProps> = ({
182182 } ) ;
183183 // If custom config is available, generate actions accordingly; otherwise, fallback to the default actions.
184184 const actions = tableRow . actions ?. length ? tableRow . actions : defaultActions ;
185- tableRow [ 'actions' ] = (
185+ tableRow [ 'actions' ] = (
186186 < OverflowMenu flipped className = { styles . flippedOverflowMenu } >
187187 { actions . map ( ( actionItem , index ) => (
188188 < OverflowMenuItem
@@ -200,7 +200,11 @@ export const EncounterList: React.FC<EncounterListProps> = ({
200200 workspaceWindowSize ,
201201 ) ;
202202 } }
203- disabled = { actionItem . label == 'Edit form' && disableEdit == true && findEncounterLatestDateIndex ( encounters ) != encounterIndex }
203+ disabled = {
204+ actionItem . label == 'Edit form' &&
205+ disableEdit == true &&
206+ findEncounterLatestDateIndex ( encounters ) != encounterIndex
207+ }
204208 />
205209 ) ) }
206210 </ OverflowMenu >
@@ -215,7 +219,7 @@ export const EncounterList: React.FC<EncounterListProps> = ({
215219 useEffect ( ( ) => {
216220 if ( encounters ?. length ) {
217221 constructPaginatedTableRows ( encounters , currentPage , pageSize ) ;
218- }
222+ }
219223 } , [ encounters , pageSize , constructPaginatedTableRows , currentPage ] ) ;
220224
221225 const formLauncher = useMemo ( ( ) => {
0 commit comments