Skip to content
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

Add optional chaining because name can be undefined #91

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

franknoirot
Copy link
Collaborator

The type of Models['User_type']['name'] is actually string | undefined but comes back as string from @kittycad/lib, so users without names were receiving 500 errors when trying to load the dashboard.

@franknoirot franknoirot added the bug Something isn't working label Jan 5, 2024
@franknoirot franknoirot self-assigned this Jan 5, 2024
Copy link

vercel bot commented Jan 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
text-to-cad-ui ✅ Ready (Inspect) Visit Preview Jan 5, 2024 6:10pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant