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

.toString() throws error when new Table was instanciated with "head" prop as undefined. #178

Open
latchy opened this issue Oct 12, 2023 · 0 comments

Comments

@latchy
Copy link

latchy commented Oct 12, 2023

The interface for TableOptions suggests that is it is valid to pass the constructor options head property as undefined, as if it were not passed at all - standard JS/TS practice.

Unfortunately this causes the .toString() method to throw an error since it does not appear to be checking whether the head options property isn't undefined.

I think this should just require a quick gaurd to ensure this is handled correctly?

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