opencode-agent[bot] 1 месяц назад
Родитель
Сommit
3337495427
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      packages/app/src/pages/session/file-tabs.tsx

+ 1 - 4
packages/app/src/pages/session/file-tabs.tsx

@@ -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))
   }