Skip to content

Conversation

@luc122c
Copy link

@luc122c luc122c commented Sep 15, 2025

Hi There, I came across an error when switching from the <sdpi-select> component to <sdpi-checkbox-list>. Becasue the data persisted in the setting was a string and not an array, I was getting an error along the lines of

TypeError: 'findIndex' does not exist on 'this.value'

Although I can't see this ever affecting end-users at runtime, I think it would be beneficial to prevent this issue by first checking if the data is an Array by using Array.isArray(). There is already a fallback in place for when this condition fails.

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