-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Cleanup new dashboard Start + Templates #3953
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
Cleanup new dashboard Start + Templates #3953
Conversation
|
Build for latest commit 18cc7a2 is at https://pr3953.build.csb.dev/s/new. |
| } | ||
|
|
||
| const templates = data && data.me && data.me.templates; | ||
| const templates = data.me.templates; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this was an intentional check as we have seen crash reports. Also, in my opinion it will be good to have a defensive code so that it doesn't break in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like I said in my review (#3952 (comment)), we know we don't have an error or loading at this point.
This means data is present.
Since data is an object with a me object (which has a templates array), we can simplify the code to what I've done
|
closing this as a lot as changed and we are still not done :( |
Resolves my PR review #3952 (review)