Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[TS migration] Migrate 'WorkspaceInvite' page to TypeScript #35080
[TS migration] Migrate 'WorkspaceInvite' page to TypeScript #35080
Changes from 8 commits
10f9139
74cb580
3d4a3e2
4f70618
2fe100c
f889669
344150a
b660cc1
191d707
fc1aad5
81f1392
91b99d7
accc5e8
f690eff
8844057
9f44931
276a254
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
@VickyStash , why did you prefer a OR
||
operator here instead of nullish??
and silenced the type error ? any special reason ?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.
Currently reviewing proposal for the issue #51655, where a contributor suggested to use nullish operator
??
insteadThere 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 think it was to keep the logic consistent with the way it was before the TS migration.
As you can see
props.workspaceInviteMessageDraft ||
was used, and sinceworkspaceInviteMessageDraft
can be the empty string the change to??
would affect the logic before the TS migration, we wanted to escape any side updates when it's changes the logic.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.
oh is it, thanks for the info 🙇