File tree Expand file tree Collapse file tree
apps/frontend/src/components/proposal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,7 +170,11 @@ let columns: Column<ProposalViewData>[] = [
170170 // No per-call route exists, so officers link to the Calls list page.
171171 render : ( rowData ) =>
172172 rowData . callShortCode ? (
173- < RoleBasedLink roleRoutes = { { [ UserRole . USER_OFFICER ] : '/Calls' } } >
173+ < RoleBasedLink
174+ roleRoutes = { {
175+ [ UserRole . USER_OFFICER ] : `/Calls?search=${ encodeURIComponent ( rowData . callShortCode ) } ` ,
176+ } }
177+ >
174178 { rowData . callShortCode }
175179 </ RoleBasedLink >
176180 ) : (
@@ -226,7 +230,9 @@ const instrumentManagementColumns = (
226230 rowData . instruments ?. map ( ( instrument ) => ( {
227231 key : instrument . id ,
228232 label : instrument . name ,
229- roleRoutes : { [ UserRole . USER_OFFICER ] : '/Instruments' } ,
233+ roleRoutes : {
234+ [ UserRole . USER_OFFICER ] : `/Instruments?search=${ instrument . name } ` ,
235+ } ,
230236 } ) )
231237 ) ,
232238
You can’t perform that action at this time.
0 commit comments