-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Help Center: Use default values on case of error #97053
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
messages: data.messages, | ||
odieId: Number( data.chat_id ), | ||
messages: data.messages || [], | ||
odieId: Number( data.chat_id ) || chatId, |
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.
Are usually data.chat_id
and chatId
different?
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.
they should be the same
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.
Thanks for improving the robustness!
This is a bit oppinionated but the hc should be available no matter what.
This PR makes things a bit more resilient.
In case we fail to load a odie chat, the help center should continue working.
Related to p1733303607767299/1733233447.208929-slack-C02T4NVL4JJ
Proposed Changes
Why are these changes being made?
Testing Instructions
sources
to be string before iterating. fbhepr%2Skers%2Sjcpbz%2Sjc%2Qpbagrag%2Serfg%2Qncv%2Qcyhtvaf%2Sraqcbvagf%2Sbqvr%2Qnffvfgnag.cuc%3Se%3Q00nq0488%23482-og