Skip to content

Commit a7c8274

Browse files
fix: PSL-BUG-1850-Fixed (#976)
1 parent 8f5ea28 commit a7c8274

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

code/frontend/src/components/Answer/Answer.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ export const Answer = ({
4545
if (citation.filepath && citation.chunk_id != null) {
4646
if (truncate && citation.filepath.length > filePathTruncationLimit) {
4747
const citationLength = citation.filepath.length;
48-
citationFilename = `${citation.filepath.substring(0, 20)}...${citation.filepath.substring(citationLength -20)} - Part ${parseInt(citation.chunk_id) + 1}`;
48+
citationFilename = `${citation.filepath.substring(0, 20)}...${citation.filepath.substring(citationLength -20)} - Part ${citation.chunk_id}`;
4949
}
5050
else {
51-
citationFilename = `${citation.filepath} - Part ${parseInt(citation.chunk_id) + 1}`;
51+
citationFilename = `${citation.filepath} - Part ${citation.chunk_id}`;
5252
}
5353
}
5454
else {
@@ -97,13 +97,13 @@ export const Answer = ({
9797
onClick={handleChevronClick} iconName={chevronIsExpanded ? 'ChevronDown' : 'ChevronRight'}
9898
/>
9999
</Stack>
100-
100+
101101
</Stack>
102102
</Stack.Item>
103103
)}
104-
104+
105105
</Stack>
106-
{chevronIsExpanded &&
106+
{chevronIsExpanded &&
107107
<div style={{ marginTop: 8, display: "flex", flexDirection: "column", height: "100%", gap: "4px", maxWidth: "100%" }}>
108108
{parsedAnswer.citations.map((citation, idx) => {
109109
return (

0 commit comments

Comments
 (0)