Skip to content

Conversation

@MichaelDeBoey
Copy link
Contributor

Resolves my PR review #3952 (review)

@MichaelDeBoey MichaelDeBoey changed the title Cleanup dashboard skeleton Cleanup new dashboard Start + Templates Apr 21, 2020
@lbogdan
Copy link
Contributor

lbogdan commented Apr 21, 2020

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;
Copy link
Contributor

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.

Copy link
Contributor Author

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

@siddharthkp siddharthkp removed their request for review April 21, 2020 09:44
@SaraVieira
Copy link
Contributor

closing this as a lot as changed and we are still not done :(

@SaraVieira SaraVieira closed this Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants