Skip to content

Commit 200f37b

Browse files
fix(spec-page): add null guard for specData to fix TypeScript build
TypeScript couldn't narrow specData after the error/loading early returns. Added explicit null check before the main render to satisfy strict null checks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b242d4f commit 200f37b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/pages/SpecPage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ export function SpecPage() {
209209
);
210210
}
211211

212+
// After loading/error/not-found guards, specData is guaranteed to be non-null
213+
if (!specData) return null;
214+
212215
return (
213216
<>
214217
<Helmet>

0 commit comments

Comments
 (0)