Parcourir la source

chore: generate

opencode-agent[bot] il y a 1 mois
Parent
commit
3337495427
1 fichiers modifiés avec 1 ajouts et 4 suppressions
  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))
   }