Skip to content

Commit

Permalink
chore(ui): update startLine to be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung committed Dec 25, 2024
1 parent a5d85d2 commit 76461a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ee/tabby-ui/components/chat/question-answer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,7 @@ function AssistantMessageCard(props: AssistantMessageCardProps) {
content: o.content,
filepath: o.filepath,
gitUrl: o.git_url,
// for server attachment code, startLine will not be undefined
startLine: o.range?.start ?? 1,
startLine: o.range?.start,
language: filename2prism(o.filepath ?? '')[0],
isClient: false
})) ?? []
Expand Down

0 comments on commit 76461a7

Please sign in to comment.