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: Table should not crash with empty column children #20703

Merged
merged 1 commit into from
Jan 6, 2020

Conversation

zombieJ
Copy link
Member

@zombieJ zombieJ commented Jan 6, 2020

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / document update
  • Component style update
  • TypeScript definition update
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

https://codesandbox.io/s/hopeful-volhard-gykps

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English Fix Table crash when columns with empty children.
🇨🇳 Chinese

☑️ Self Check before Merge

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

Copy link

@tests-checker tests-checker bot left a comment

Choose a reason for hiding this comment

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

Could you please add tests to make sure this change works as expected?

@pr-triage pr-triage bot removed the PR: unreviewed label Jan 6, 2020
@netlify
Copy link

netlify bot commented Jan 6, 2020

Deploy preview for ant-design ready!

Built with commit e657dc8

https://deploy-preview-20703--ant-design.netlify.com

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 6, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e657dc8:

Sandbox Source
antd reproduction template Configuration
sharp-field-qz87e PR

@chenshuai2144
Copy link
Contributor

喜大普奔

@codecov
Copy link

codecov bot commented Jan 6, 2020

Codecov Report

Merging #20703 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #20703   +/-   ##
=======================================
  Coverage   97.54%   97.54%           
=======================================
  Files         295      295           
  Lines        6842     6842           
  Branches     1889     1856   -33     
=======================================
  Hits         6674     6674           
  Misses        168      168
Impacted Files Coverage Δ
components/table/hooks/useFilter/index.tsx 100% <100%> (ø) ⬆️
components/table/hooks/useSorter.tsx 90.22% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78f5607...e657dc8. Read the comment docs.

@zombieJ zombieJ merged commit 1c1a4a7 into master Jan 6, 2020
@zombieJ zombieJ deleted the fix-table-crash branch January 6, 2020 12:28
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.

None yet

2 participants