We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ea4a40 commit d268ceaCopy full SHA for d268cea
src/components/ViewPackagePage/components/important-files-view.tsx
@@ -142,8 +142,12 @@ export default function ImportantFilesView({
142
const availableTabs = useMemo((): TabInfo[] => {
143
const tabs: TabInfo[] = []
144
145
- // Only show AI description tab if there's actual AI content
146
- if (hasAiContent) {
+ const hasReadme = importantFiles.some((file) =>
+ isReadmeFile(file.file_path),
147
+ )
148
+
149
+ // Only show AI description tab if there's actual AI content and no README
150
+ if (hasAiContent && !hasReadme) {
151
tabs.push({
152
type: "ai",
153
filePath: null,
0 commit comments