Skip to content

Commit

Permalink
fix feature analytics type
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Jan 21, 2025
1 parent 762bc2e commit 446d48e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions frontend/common/stores/feature-list-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,17 +473,16 @@ const controller = {
API.trackEvent(Constants.events.EDIT_FEATURE)
const env: Environment = ProjectStore.getEnvironment(environmentId) as any
// Detect differences between change request and existing feature states
const res: { data: PagedResponse<TypedFeatureState> } =
await getFeatureStates(
getStore(),
{
environment: environmentFlag.environment,
feature: projectFlag.id,
},
{
forceRefetch: true,
},
)
const res: { data: PagedResponse<TypedFeatureState> } = await getFeatureStates(
getStore(),
{
environment: environmentFlag.environment,
feature: projectFlag.id,
},
{
forceRefetch: true,
},
)
const segmentResult = await getSegments(getStore(), {
include_feature_specific: true,
page_size: 1000,
Expand Down
2 changes: 1 addition & 1 deletion frontend/common/types/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ export type Res = {
samlAttributeMapping: PagedResponse<SAMLAttributeMapping>
featureAnalytics: {
day: string
[environmentId: string]: string | number | undefined // Dynamic properties for environment IDs
[environmentId: string]: string | number
}[]
// END OF TYPES
}

0 comments on commit 446d48e

Please sign in to comment.