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

[BUG] Cell.text throw error if cell is merged and isn't a master #1399

Open
Siemienik opened this issue Jul 21, 2020 · 0 comments
Open

[BUG] Cell.text throw error if cell is merged and isn't a master #1399

Siemienik opened this issue Jul 21, 2020 · 0 comments

Comments

@Siemienik
Copy link
Member

🐛 Bug Report

When working on Siemienik/xlsx-renderer#43 founded issue with merged child cells

Steps To Reproduce

Conditions:

  • Merged cell: A1:B1 with value hello world
  • Cell A1 is master
  • Cell B1 is a child
ws.getCell('A1').text // `hello world`
ws.getCell('B1').text // exception `TypeError: Cannot read property 'toString' of null` 

The expected behaviour:

ws.getCell('A1').text // `hello world`
ws.getCell('B1').text // `hello world`

Possible solution (optional, but very helpful):

Investigate and fix the behaviour of MergeValueType

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

No branches or pull requests

1 participant