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

fix: collapse site fields in project service #100

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

shrouxm
Copy link
Member

@shrouxm shrouxm commented Sep 13, 2023

Description

The project service was updating user's sites with unprocessed SiteNodes from the graphql response. I think this error would've been caught by the compiler if the TypeScript type for Site had projectId: string | null and ownerId: string | null instead of projectId?: string, but then we would be forced to manually specify null everywhere when creating new sites. which isn't that common so might be a good trade-off. anyway i will file a separate issue for that, for now this is just the bug fix

@shrouxm shrouxm added this to the LandPKS 2023-09 milestone Sep 13, 2023
@shrouxm shrouxm requested a review from david-code September 13, 2023 18:16
@shrouxm shrouxm merged commit cde6ca0 into main Sep 13, 2023
9 checks passed
@shrouxm shrouxm deleted the fix/forgot-to-collapse-site-fields branch September 13, 2023 19:00
@shrouxm shrouxm self-assigned this Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants