-
Notifications
You must be signed in to change notification settings - Fork 583
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
Null check #1669
Null check #1669
Conversation
🦋 Changeset detectedLatest commit: 058b1a7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
View your CI Pipeline Execution ↗ for commit 058b1a7.
☁️ Nx Cloud last updated this comment at |
Deploying mitosis with
|
Latest commit: |
058b1a7
|
Status: | ✅ Deploy successful! |
Preview URL: | https://327340d4.mitosis-9uh.pages.dev |
Branch Preview URL: | https://korey-null-check.mitosis-9uh.pages.dev |
if (typeof linkUrl === 'object' && linkUrl['@type'] === '@builder.io/core:LocalizedValue') { | ||
if ( | ||
typeof linkUrl === 'object' && | ||
linkUrl !== null && |
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.
Weird that we need this since there's a if (linkUrl)
right above?
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.
This particular null check might not be 100% necessary, but I wanted to keep it consistent with the other spots where we check for localized values
Co-authored-by: Sami Jaber <[email protected]>
Description
Adds null check for property values
https://www.loom.com/share/be7a4cd800614433aaa82b7675b87bd8
https://builder-io.atlassian.net/browse/ENG-8150
yarn fmt:prettier
.yarn test:update
yarn g:changeset
and follow the CLI instructions. Alternatively, use the Changeset Github Bot to create the file.