Fix TypeScript strict null check errors
Add optional chaining and null checks in build scripts to handle potentially undefined array elements. Add style prop to Card, Badge, and Placeholder components, and onClick prop to Text component to support inline styling in screen components. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -58,7 +58,7 @@ function parseGherkinContent(content: string, filePath: string): ParsedFeature |
|
||||
let contentStartIndex = 0;
|
||||
|
||||
for (let i = 0; i < lines.length; i++) {
|
||||
const line = lines[i].trim();
|
||||
const line = lines[i]?.trim() ?? '';
|
||||
if (line.startsWith('#')) {
|
||||
contentStartIndex = i + 1;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user