-
Notifications
You must be signed in to change notification settings - Fork 105
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
feat: implement filter list #124
base: main
Are you sure you want to change the base?
Conversation
|
/cc @natemoo-re @ulken need some suggestions 🙏 |
Co-authored-by: Vasilii A <[email protected]>
if (filtered.length) { | ||
this.options = filtered.map( | ||
({ item }) => this.originalOptions.find(({ value }) => value === item)! | ||
); | ||
} else { | ||
this.options = []; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a shorter version:
if (filtered.length) { | |
this.options = filtered.map( | |
({ item }) => this.originalOptions.find(({ value }) => value === item)! | |
); | |
} else { | |
this.options = []; | |
} | |
this.options = filtered.map( | |
({ item }) => this.originalOptions.find(({ value }) => value === item)! | |
); |
Quick preview:
Currently stage: draft
Need some feedback and suggestions:
usage: