diff --git a/frontend/src/component/insights/componentsChart/CreationArchiveChart/CreationArchiveChart.tsx b/frontend/src/component/insights/componentsChart/CreationArchiveChart/CreationArchiveChart.tsx index 44aeb8d484..5d811c774f 100644 --- a/frontend/src/component/insights/componentsChart/CreationArchiveChart/CreationArchiveChart.tsx +++ b/frontend/src/component/insights/componentsChart/CreationArchiveChart/CreationArchiveChart.tsx @@ -44,7 +44,6 @@ interface ICreationArchiveChartProps { creationArchiveTrends: GroupedDataByProject< InstanceInsightsSchema['creationArchiveTrends'] >; - isAggregate?: boolean; isLoading?: boolean; } @@ -66,7 +65,6 @@ type RawWeekData = { export const CreationArchiveChart: FC = ({ creationArchiveTrends, - isAggregate, isLoading, }) => { const creationArchiveData = useProjectChartData(creationArchiveTrends); @@ -188,9 +186,7 @@ export const CreationArchiveChart: FC = ({ }; }, [creationArchiveData, theme]); - const aggregateOrProjectData = isAggregate - ? aggregateHealthData - : creationArchiveData; + const aggregateOrProjectData = aggregateHealthData; const notEnoughData = useMemo( () => !isLoading && @@ -200,14 +196,11 @@ export const CreationArchiveChart: FC = ({ const data = notEnoughData || isLoading ? placeholderData : aggregateOrProjectData; - const flagTypeNames = isAggregate - ? (aggregateHealthData as any).flagTypeNames || [] - : []; + const flagTypeNames = (aggregateHealthData as any).flagTypeNames || []; return ( <> { groupedCreationArchiveData, } = useInsightsData(insights, projects); + console.log(groupedCreationArchiveData); + const { isEnterprise } = useUiConfig(); const lastUserTrend = userTrends[userTrends.length - 1]; const usersTotal = lastUserTrend?.total ?? 0; @@ -158,7 +160,6 @@ export const PerformanceInsights: FC = () => {