auto-claude: subtask-6-1 - TypeScript compilation check - fix GraphitiStep type error
Fixed TypeScript error in GraphitiStep.tsx where setDockerAvailable was receiving `boolean | undefined` instead of the expected `boolean | null`. Changed the ternary expression to explicitly return `true` or `false`. All onboarding wizard components now compile without TypeScript errors. Note: Pre-existing errors in terminal-name-generator.ts, Terminal.tsx, useVirtualizedTree.test.ts, and browser-mock.ts are outside the scope of this feature. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -61,7 +61,7 @@ export function GraphitiStep({ onNext, onBack, onSkip }: GraphitiStepProps) {
|
||||
try {
|
||||
// Check infrastructure status via the electronAPI
|
||||
const result = await window.electronAPI.getInfrastructureStatus();
|
||||
setDockerAvailable(result?.success && result?.data?.docker?.running);
|
||||
setDockerAvailable(result?.success && result?.data?.docker?.running ? true : false);
|
||||
} catch {
|
||||
// Infrastructure check may fail, assume unavailable
|
||||
setDockerAvailable(false);
|
||||
|
||||
Reference in New Issue
Block a user