Skip to content

Commit

Permalink
Merge pull request #49564 from daledah/fix/48771
Browse files Browse the repository at this point in the history
  • Loading branch information
marcochavezf authored Sep 26, 2024
2 parents b5c47c5 + 7032f26 commit 5363ee1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ROUTES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ const ROUTES = {
},
EDIT_REPORT_FIELD_REQUEST: {
route: 'r/:reportID/edit/policyField/:policyID/:fieldID',
getRoute: (reportID: string, policyID: string, fieldID: string, backTo?: string) => getUrlWithBackToParam(`r/${reportID}/edit/policyField/${policyID}/${fieldID}` as const, backTo),
getRoute: (reportID: string, policyID: string, fieldID: string, backTo?: string) =>
getUrlWithBackToParam(`r/${reportID}/edit/policyField/${policyID}/${encodeURIComponent(fieldID)}` as const, backTo),
},
REPORT_WITH_ID_DETAILS_SHARE_CODE: {
route: 'r/:reportID/details/shareCode',
Expand Down
7 changes: 6 additions & 1 deletion src/libs/Navigation/linkingConfig/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,12 @@ const config: LinkingOptions<RootStackParamList>['config'] = {
},
[SCREENS.RIGHT_MODAL.EDIT_REQUEST]: {
screens: {
[SCREENS.EDIT_REQUEST.REPORT_FIELD]: ROUTES.EDIT_REPORT_FIELD_REQUEST.route,
[SCREENS.EDIT_REQUEST.REPORT_FIELD]: {
path: ROUTES.EDIT_REPORT_FIELD_REQUEST.route,
parse: {
fieldID: (fieldID: string) => decodeURIComponent(fieldID),
},
},
},
},
[SCREENS.RIGHT_MODAL.SIGN_IN]: {
Expand Down

0 comments on commit 5363ee1

Please sign in to comment.