فهرست منبع

chore: generate

opencode-agent[bot] 1 ماه پیش
والد
کامیت
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 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
     if (!source) return undefined
     return selectionPreview(source, selectionFromLines(lines))
     return selectionPreview(source, selectionFromLines(lines))
   }
   }