-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: remove markdown symbol in report header and report details page #59328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ec047d8
fc97a95
939b866
b3630b2
b29eb07
3fae7b8
93535fc
a2ec38f
1c111ab
2752f7b
a371d91
11192c3
b2a5cb0
87dfc9f
c88fbfa
700716f
e277fe2
3a39132
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -8,7 +8,9 @@ import useReviewDuplicatesNavigation from '@hooks/useReviewDuplicatesNavigation' | |||
import {setReviewDuplicatesKey} from '@libs/actions/Transaction'; | ||||
import type {PlatformStackRouteProp} from '@libs/Navigation/PlatformStackNavigation/types'; | ||||
import type {TransactionDuplicateNavigatorParamList} from '@libs/Navigation/types'; | ||||
import * as TransactionUtils from '@libs/TransactionUtils'; | ||||
import Parser from '@libs/Parser'; | ||||
import StringUtils from '@libs/StringUtils'; | ||||
import {compareDuplicateTransactionFields, getTransactionID} from '@libs/TransactionUtils'; | ||||
import ONYXKEYS from '@src/ONYXKEYS'; | ||||
import type SCREENS from '@src/SCREENS'; | ||||
import type {FieldItemType} from './ReviewFields'; | ||||
|
@@ -17,14 +19,14 @@ import ReviewFields from './ReviewFields'; | |||
function ReviewDescription() { | ||||
const route = useRoute<PlatformStackRouteProp<TransactionDuplicateNavigatorParamList, typeof SCREENS.TRANSACTION_DUPLICATE.DESCRIPTION>>(); | ||||
const {translate} = useLocalize(); | ||||
const transactionID = TransactionUtils.getTransactionID(route.params.threadReportID ?? ''); | ||||
const [reviewDuplicates] = useOnyx(ONYXKEYS.REVIEW_DUPLICATES); | ||||
const compareResult = TransactionUtils.compareDuplicateTransactionFields(transactionID, reviewDuplicates?.reportID ?? '-1'); | ||||
const transactionID = getTransactionID(route.params.threadReportID); | ||||
const [reviewDuplicates] = useOnyx(ONYXKEYS.REVIEW_DUPLICATES, {canBeMissing: false}); | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given this key is set in line 46, I think this can be missing no? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx Line 336 in 069891a
So in |
||||
const compareResult = compareDuplicateTransactionFields(transactionID, reviewDuplicates?.reportID); | ||||
const stepNames = Object.keys(compareResult.change ?? {}).map((key, index) => (index + 1).toString()); | ||||
const {currentScreenIndex, goBack, navigateToNextScreen} = useReviewDuplicatesNavigation( | ||||
Object.keys(compareResult.change ?? {}), | ||||
'description', | ||||
route.params.threadReportID ?? '', | ||||
route.params.threadReportID, | ||||
route.params.backTo, | ||||
); | ||||
const options = useMemo( | ||||
|
@@ -33,7 +35,7 @@ function ReviewDescription() { | |||
!description?.comment | ||||
? {text: translate('violations.none'), value: ''} | ||||
: { | ||||
text: description.comment, | ||||
text: StringUtils.lineBreaksToSpaces(Parser.htmlToText(description.comment)), | ||||
value: description.comment, | ||||
}, | ||||
), | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey I think this PR is generating a
canBeMissing
error related to changes in this file