Skip to content

Commit

Permalink
refactor: fix return type for getFeatureOverviewData (#6750)
Browse files Browse the repository at this point in the history
Brought up by #6738
  • Loading branch information
sjaanus committed Apr 2, 2024
1 parent fc43391 commit 8942cda
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -107,7 +107,7 @@ function mapInput(input: IFeatureStrategy): IFeatureStrategiesTable {
};
}

const sortEnvironments = (overview: IFeatureOverview) => {
const sortEnvironments = (overview: Record<string, IFeatureOverview>) => {
return Object.values(overview).map((data: IFeatureOverview) => ({
...data,
environments: data.environments
Expand Down Expand Up @@ -728,7 +728,7 @@ class FeatureStrategiesStore implements IFeatureStrategiesStore {
}, {});
}

getFeatureOverviewData(rows): IFeatureOverview {
getFeatureOverviewData(rows): Record<string, IFeatureOverview> {
return rows.reduce((acc, row) => {
if (acc[row.feature_name]) {
const environmentExists = acc[
Expand Down

0 comments on commit 8942cda

Please sign in to comment.