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

fix: Variant type number duplicate options #4719

Merged
merged 3 commits into from
Sep 14, 2023

Conversation

andreas-unleash
Copy link
Contributor

Fixes a bug where the number option was shown multiple times

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
@vercel
Copy link

vercel bot commented Sep 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 14, 2023 11:48am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Sep 14, 2023 11:48am

if (variantTypeNumber) {
if (
variantTypeNumber &&
!payloadOptions.includes({ key: 'number', label: 'number' })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is include using equality check? what if you have 2 identical objects that are 2 different memory instances

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
@andreas-unleash andreas-unleash merged commit be2fa68 into main Sep 14, 2023
14 checks passed
@andreas-unleash andreas-unleash deleted the fix/variant_Type_number_ui branch September 14, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants