Skip to content

Fix omitIndexList with zero - #32

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

melvynhills wants to merge 1 commit into
NiklasMencke:mainfrom
melvynhills:bugfix/omit-index-list-zero

Conversation

@melvynhills

@melvynhills melvynhills commented Sep 13, 2021

Copy link
Copy Markdown

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

red1 commented Jan 29, 2023

Copy link
Copy Markdown

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