From 382c7cc9e1ef7501480bf6b20016528bff44cea8 Mon Sep 17 00:00:00 2001 From: Talisson Costa Date: Mon, 16 Mar 2026 17:35:10 -0300 Subject: [PATCH] fix: convert feature_state_value to primitive after v2 segment save (#6962) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The v2 segment save path stores the API response's feature_state_value as a FeatureStateValue object instead of converting it to a primitive, causing [object Object] to appear in the UI. The VALUE path already handles this correctly — this aligns the SEGMENT path to do the same. Co-Authored-By: Claude Opus 4.6 --- frontend/common/stores/feature-list-store.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/common/stores/feature-list-store.ts b/frontend/common/stores/feature-list-store.ts index 20b081f57b81..f47d9bfe011a 100644 --- a/frontend/common/stores/feature-list-store.ts +++ b/frontend/common/stores/feature-list-store.ts @@ -766,6 +766,9 @@ const controller = { store.model.keyedEnvironmentFeatures[projectFlag.id] = { ...store.model.keyedEnvironmentFeatures[projectFlag.id], ...environmentFeatureState, + feature_state_value: Utils.featureStateToValue( + environmentFeatureState.feature_state_value, + ), } } })