Skip to content

Commit

Permalink
chore(ui): update startLine to be optional (#3616)
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung authored Dec 25, 2024
1 parent 220bd02 commit 01f91a9
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 01f91a9

Please sign in to comment.