Skip to content
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

fix: tabset component with only one tab #1671

Conversation

gerardolgvr
Copy link
Contributor

fix: tabset component with only one tab

fix: #1667

Changes proposed in this PR:

  • The problem was at the function "IsNotSameChildren" at utils.js (Tabset component). This function is expecting an array of objects but when a single tab is given the parameter that receives that function is an object. So, method ".some" is available for arrays but when an object is received an error occurs.

  • A new check was added to make the proper comparation

  • I have followed (at least) the PR section of the contributing guide.

@nexxtway/react-rainbow

@commit-lint
Copy link

commit-lint bot commented Jun 29, 2020

Contributors

@gerardolgvr, @LeandroTorresSicilia

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

@CLAassistant
Copy link

CLAassistant commented Jun 29, 2020

CLA assistant check
All committers have signed the CLA.

@gerardolgvr gerardolgvr force-pushed the fix-tabset-when-only-have-one-tab branch from 2d509be to e7ac1aa Compare June 29, 2020 06:04
@LeandroTorresSicilia
Copy link
Member

@gerardolgvr Good job!

@LeandroTorresSicilia LeandroTorresSicilia merged commit f61c8d6 into nexxtway:master Jun 30, 2020
@gerardolgvr
Copy link
Contributor Author

@gerardolgvr Good job!

Thanks! :)

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.

fix: the page crash when Tabset component have only one Tab
4 participants