-
Notifications
You must be signed in to change notification settings - Fork 98
chore: enable noUncheckedIndexedAccess #285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
f75297f
231168e
cb35fdf
f4b8323
e72f2c2
245a263
e7dd7a6
4ab2a80
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -75,7 +75,9 @@ export function parseTable(text: string): Record<string, string>[] { | |||||||||
.map((cells) => { | ||||||||||
const row: Record<string, string> = {}; | ||||||||||
cells.forEach((cell, index) => { | ||||||||||
row[headers[index]] = cell; | ||||||||||
if (headers) { | ||||||||||
row[headers[index] ?? ""] = cell; | ||||||||||
} | ||||||||||
Comment on lines
+78
to
+80
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'headers' is possibly 'undefined'.ts(18048) |
||||||||||
}); | ||||||||||
return row; | ||||||||||
}); | ||||||||||
|
@@ -87,14 +89,14 @@ async function createProject(apiClient: ApiClient): Promise<Group> { | |||||||||
const projectName: string = `testProj-` + randomId; | ||||||||||
|
||||||||||
const orgs = await apiClient.listOrganizations(); | ||||||||||
if (!orgs?.results?.length || !orgs.results[0].id) { | ||||||||||
if (!orgs?.results?.length || !orgs.results[0]?.id) { | ||||||||||
throw new Error("No orgs found"); | ||||||||||
} | ||||||||||
|
||||||||||
const group = await apiClient.createProject({ | ||||||||||
body: { | ||||||||||
name: projectName, | ||||||||||
orgId: orgs.results[0].id, | ||||||||||
orgId: orgs.results[0]?.id ?? "", | ||||||||||
} as Group, | ||||||||||
}); | ||||||||||
|
||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.