Skip to content

chore: support external types in typescript codegen #9633

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

Merged
merged 11 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix TS issues
  • Loading branch information
Emyrk committed Sep 12, 2023
commit a9ee4319b4b4c2f78be7d490f728f13c589d9fd8
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ const meta: Meta<typeof GitAuthSettingsPageView> = {
type: "GitHub",
client_id: "client_id",
regex: "regex",
auth_url: "",
token_url: "",
validate_url: "",
app_install_url: "https://github.com/apps/coder/installations/new",
app_installations_url: "",
no_refresh: false,
scopes: [],
device_flow: true,
device_code_url: "",
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const GitAuthSettingsPageView = ({
</TableRow>
</TableHead>
<TableBody>
{((config.git_auth === null || config.git_auth.length === 0) && (
{((config.git_auth === null || config.git_auth?.length === 0) && (
<TableRow>
<TableCell colSpan={999}>
<div className={styles.empty}>
Expand All @@ -65,7 +65,7 @@ export const GitAuthSettingsPageView = ({
</TableCell>
</TableRow>
)) ||
config.git_auth.map((git: GitAuthConfig) => {
config.git_auth?.map((git: GitAuthConfig) => {
const name = git.id || git.type;
return (
<TableRow key={name}>
Expand Down