chore: generate
This commit is contained in:
parent
80a4fe8f39
commit
3337495427
1 changed files with 1 additions and 4 deletions
|
|
@ -556,10 +556,7 @@ function SessionFileViewV2(props: { tab: string }) {
|
|||
}
|
||||
|
||||
const buildPreview = (filePath: string, lines: SelectedLineRange) => {
|
||||
const source =
|
||||
filePath === path()
|
||||
? contents()
|
||||
: file.get(filePath)?.content?.content
|
||||
const source = filePath === path() ? contents() : file.get(filePath)?.content?.content
|
||||
if (!source) return undefined
|
||||
return selectionPreview(source, selectionFromLines(lines))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue