Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 094b992

Browse files
normalize comment path
1 parent 505223a commit 094b992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/views/reviews-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ export default class ReviewsView extends React.Component {
627627
lineNumber = null;
628628
positionText = 'outdated';
629629
} else {
630-
const translationsForFile = translations.get(rootComment.path);
630+
const translationsForFile = translations.get(path.normalize(rootComment.path));
631631
lineNumber = translationsForFile.diffToFilePosition.get(parseInt(rootComment.position, 10));
632632
if (translationsForFile.fileTranslations && isCheckedOutPullRequest) {
633633
lineNumber = translationsForFile.fileTranslations.get(lineNumber).newPosition;

0 commit comments

Comments
 (0)