fix: Coerce flags param to array in FlagMultiSelect - #4104
sentry[bot] wants to merge 1 commit into
Conversation
Bundle ReportChanges will increase total bundle size by 62 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: gazebo-production-esmAssets Changed:
Files in
view changes for bundle: gazebo-production-systemAssets Changed:
Files in
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4104 +/- ##
==========================================
- Coverage 98.77% 98.75% -0.02%
==========================================
Files 823 823
Lines 15147 15152 +5
Branches 4387 4392 +5
==========================================
+ Hits 14961 14963 +2
- Misses 179 182 +3
Partials 7 7
Continue to review full report in Codecov by Harness.
|
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #4104 +/- ##
==========================================
- Coverage 98.77% 98.75% -0.02%
==========================================
Files 823 823
Lines 15147 15152 +5
Branches 4387 4384 -3
==========================================
+ Hits 14961 14963 +2
- Misses 179 182 +3
Partials 7 7
Continue to review full report in Codecov by Sentry.
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
@@ Coverage Diff @@
## main #4104 +/- ##
==========================================
- Coverage 98.77% 98.75% -0.02%
==========================================
Files 823 823
Lines 15147 15152 +5
Branches 4379 4392 +13
==========================================
+ Hits 14961 14963 +2
- Misses 179 182 +3
Partials 7 7
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
✅ Deploy preview for gazebo ready!Previews expire after 1 month automatically.
|
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #4104 +/- ##
==========================================
- Coverage 98.77% 98.75% -0.02%
==========================================
Files 823 823
Lines 15147 15152 +5
Branches 4387 4392 +5
==========================================
+ Hits 14961 14963 +2
- Misses 179 182 +3
Partials 7 7
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Description
The
FlagMultiSelectcomponent was encountering aTypeError: M.forEach is not a functionbecauseparams.flagswas sometimes a string instead of an array. This occurred when a single flag was passed in the URL query string (e.g.,?flags=my-flag), as the query parser would return a string.This change introduces a
flagsParamvariable that normalizesparams.flagsto always be an array. This normalized value is now used for initializingselectedFlagsand in theforEachloop, preventing the TypeError.Code Example
Notable Changes
Introduced
flagsParamvariable to normalizeparams.flagsto always be an array, preventingTypeError: M.forEach is not a function.Screenshots
Link to Sample Entry
Legal Boilerplate
Look, I get it. The entity doing business as "Codecov" is owned by Harness, Inc. In 2026 Harness acquired Codecov and as a result Harness is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Harness can use, modify, copy, and redistribute my contributions, under Harness's choice of terms.
Fixes GAZEBO-16P9
This PR was automatically generated by Sentry. You can adjust this setting at any time.