chore: generate
This commit is contained in:
@@ -556,10 +556,7 @@ function SessionFileViewV2(props: { tab: string }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const buildPreview = (filePath: string, lines: SelectedLineRange) => {
|
const buildPreview = (filePath: string, lines: SelectedLineRange) => {
|
||||||
const source =
|
const source = filePath === path() ? contents() : file.get(filePath)?.content?.content
|
||||||
filePath === path()
|
|
||||||
? contents()
|
|
||||||
: file.get(filePath)?.content?.content
|
|
||||||
if (!source) return undefined
|
if (!source) return undefined
|
||||||
return selectionPreview(source, selectionFromLines(lines))
|
return selectionPreview(source, selectionFromLines(lines))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user