Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[MM-16007] Fix JS errors in system console and channel intro message #2907

Merged
merged 1 commit into from
Jun 6, 2019
Merged

[MM-16007] Fix JS errors in system console and channel intro message #2907

merged 1 commit into from
Jun 6, 2019

Conversation

saturninoabril
Copy link
Member

Summary

Fix JS errors in system console and channel intro message.

Ticket Link

Jira ticket: MM-16007

@saturninoabril saturninoabril added the 2: Dev Review Requires review by a core commiter label Jun 4, 2019
text: PropTypes.string.isRequired,
text: PropTypes.oneOfType([
PropTypes.string,
PropTypes.object,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other help text are passed with elements like security help text --> here

@@ -34,7 +34,7 @@ export default class ChannelIntroMessage extends React.PureComponent {
channelProfiles: PropTypes.array.isRequired,
enableUserCreation: PropTypes.bool,
isReadOnly: PropTypes.bool,
teamIsGroupConstrained: PropTypes.bool.isRequired,
teamIsGroupConstrained: PropTypes.bool,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

team.group_constrained is sometimes null if not set. So, either make this as not required or wrapped it with Boolean(team.group_constrained).

@amyblais amyblais added the CherryPick/Approved Meant for the quality or patch release tracked in the milestone label Jun 4, 2019
@amyblais amyblais added this to the v5.12.0 milestone Jun 4, 2019
Copy link
Contributor

@bradjcoughlin bradjcoughlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooh, glad to see a fix for this. Was seeing red 🔴 🔴. LGTM!

@mkraft mkraft added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Jun 6, 2019
@saturninoabril saturninoabril merged commit 5dd2b25 into mattermost:master Jun 6, 2019
@saturninoabril saturninoabril deleted the MM-16007 branch June 6, 2019 15:05
@saturninoabril saturninoabril added CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone and removed 4: Reviews Complete All reviewers have approved the pull request CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Jun 6, 2019
@lindy65 lindy65 added the Tests/Not Needed Does not require new release tests label Jun 6, 2019
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Jun 6, 2019
Wipeout55 pushed a commit to Wipeout55/mattermost-webapp that referenced this pull request Jun 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog/Not Needed Does not require a changelog entry CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone Docs/Not Needed Does not require documentation Tests/Not Needed Does not require new release tests
Projects
None yet
5 participants