Skip to content

Fix omitIndexList with zero#32

Open
melvynhills wants to merge 1 commit intoNiklasMencke:mainfrom
melvynhills:bugfix/omit-index-list-zero
Open

Fix omitIndexList with zero#32
melvynhills wants to merge 1 commit intoNiklasMencke:mainfrom
melvynhills:bugfix/omit-index-list-zero

Conversation

@melvynhills
Copy link

@melvynhills melvynhills commented Sep 13, 2021

Adding 0 to omitIndexList doesn't work, because the condition is using find() which returns the found element. 0 is a falsy value, so the condition is not satisfied even though it should. Using includes() instead fixes this.

@red1
Copy link

red1 commented Jan 29, 2023

Can this PR be merged please ?

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.

2 participants