Skip to content

fix(v2): fix build caused when one tab item - #1938

Merged
yangshun merged 3 commits into
facebook:masterfrom
lex111:hotfix-tabs
Nov 5, 2019
Merged

fix(v2): fix build caused when one tab item#1938
yangshun merged 3 commits into
facebook:masterfrom
lex111:hotfix-tabs

Conversation

@lex111

@lex111 lex111 commented Nov 4, 2019

Copy link
Copy Markdown
Contributor

Motivation

Hotfix: after the .32 release, if there is one code tab, then the build command will fail.

Actually, my fault, this error didn’t exist when the devserver was working, but something did not work when compiling the build :(
Probably we need tests that the build command checks.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

See #1934 and apply build.

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

@lex111
lex111 requested a review from endiliey November 4, 2019 16:34
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Nov 4, 2019
@docusaurus-bot

docusaurus-bot commented Nov 4, 2019

Copy link
Copy Markdown
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit db31721

https://deploy-preview-1938--docusaurus-2.netlify.com

@docusaurus-bot

docusaurus-bot commented Nov 4, 2019

Copy link
Copy Markdown
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit db31721

https://deploy-preview-1938--docusaurus-preview.netlify.com

Comment thread packages/docusaurus-theme-classic/src/theme/Tabs/index.js

@yangshun yangshun left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No worries, let's merge this.

@yangshun
yangshun merged commit 3b9309f into facebook:master Nov 5, 2019
@lex111

lex111 commented Nov 5, 2019

Copy link
Copy Markdown
Contributor Author

Will there be 2.0.0-alpha.33 for this?

@yangshun

yangshun commented Nov 5, 2019

Copy link
Copy Markdown
Contributor

Personally, I don't think it's very urgent because only users having one item will run into this and they can choose not to upgrade to 2.0.0-alpha.32 yet. @endiliey is our release guy and he could release one if it isn't too much work.

mrizwanashiq pushed a commit to mrizwanashiq/docusaurus that referenced this pull request Jun 25, 2026
* fix(v2): fix build caused when one tab item

* Use React method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants