File tree Expand file tree Collapse file tree
src/frontend/src/pages/ChangeRequestDetailPage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ interface OtherChangeRequestsPopupTabsProps {
1919}
2020
2121const OtherChangeRequestsPopupTabs : React . FC < OtherChangeRequestsPopupTabsProps > = ( {
22- changeRequest, fromSubmitter
22+ changeRequest,
23+ fromSubmitter
2324} : OtherChangeRequestsPopupTabsProps ) => {
2425 const theme = useTheme ( ) ;
2526 const [ tab , setTab ] = useState ( 0 ) ;
@@ -39,9 +40,7 @@ const OtherChangeRequestsPopupTabs: React.FC<OtherChangeRequestsPopupTabsProps>
3940 return b . dateSubmitted . getTime ( ) - a . dateSubmitted . getTime ( ) ;
4041 } ) ;
4142
42- const crsFromWbs = changeRequests ?. filter ( ( cr ) => ( cr . wbsName === changeRequest . wbsName ) ) ;
43-
44- console . log ( changeRequest . wbsNum ) ;
43+ const crsFromWbs = changeRequests ?. filter ( ( cr ) => cr . wbsName === changeRequest . wbsName ) ;
4544
4645 const displayTab = ( value : number , title : string ) => (
4746 < Tab
@@ -121,7 +120,9 @@ const OtherChangeRequestsPopupTabs: React.FC<OtherChangeRequestsPopupTabsProps>
121120 { displayTab ( 1 , `Other CR's from ${ wbsPipe ( changeRequest . wbsNum ) } ` ) }
122121 { displayTab ( 2 , `Other CR's from ${ fullNamePipe ( changeRequest . submitter ) } ` ) }
123122 </ Tabs >
124- < Collapse in = { tab !== 0 } > { tab === 1 ? displayCRCards ( ( crsFromWbs ) || [ ] ) : ( tab === 2 && displayCRCards ( ( crsFromSubmitter ) || [ ] ) ) } </ Collapse >
123+ < Collapse in = { tab !== 0 } >
124+ { tab === 1 ? displayCRCards ( crsFromWbs || [ ] ) : tab === 2 && displayCRCards ( crsFromSubmitter || [ ] ) }
125+ </ Collapse >
125126 </ Box >
126127 ) ;
127128} ;
You can’t perform that action at this time.
0 commit comments