Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkarimoff committed Mar 14, 2024
1 parent 8117e2c commit 4b576e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/documentation/lib/docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ export const getDocsForRouteSegment = ({
return;
}

if (data.sourceFile) {
// Handle projects and folders differently - if they have a souceFile
// docPath should generate a path pointing to the folder/project.
if (data.sourceFile && data.type !== 'project') {
// Handle folders differently - if they have a sourceFile
// docPath should generate a path pointing to the folder.
results.push({
locale,
project,
Expand Down

0 comments on commit 4b576e4

Please sign in to comment.