mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-13 13:48:59 +02:00
Fix
This commit is contained in:
parent
8b56b929c8
commit
c34849387d
@ -196,13 +196,13 @@ export const CreationArchiveChart: FC<ICreationArchiveChartProps> = ({
|
||||
const data =
|
||||
notEnoughData || isLoading ? placeholderData : aggregateOrProjectData;
|
||||
|
||||
const flagTypeNames = (aggregateHealthData as any).flagTypeNames || [];
|
||||
const flagTypeNames = aggregateHealthData.flagTypeNames || [];
|
||||
|
||||
return (
|
||||
<>
|
||||
<Chart
|
||||
type='bar'
|
||||
data={data as any}
|
||||
data={data}
|
||||
options={{
|
||||
responsive: true,
|
||||
plugins: {
|
||||
|
@ -3,7 +3,7 @@ import { Box, Paper, Typography, styled, useTheme } from '@mui/material';
|
||||
import type { TooltipState } from 'component/insights/components/LineChart/ChartTooltip/ChartTooltip';
|
||||
import { ChartTooltipContainer } from 'component/insights/components/LineChart/ChartTooltip/ChartTooltip';
|
||||
|
||||
const getRatioTooltipColors = (theme: any) => ({
|
||||
const getRatioTooltipColors = (theme: Theme) => ({
|
||||
CREATED: theme.palette.success.main,
|
||||
ARCHIVED: theme.palette.background.application,
|
||||
});
|
||||
@ -42,7 +42,7 @@ export const CreationArchiveRatioTooltip: FC<
|
||||
return null;
|
||||
}
|
||||
|
||||
const rawData = ratioDataPoint.raw as any;
|
||||
const rawData = ratioDataPoint.raw as RatioDataPointRaw;
|
||||
|
||||
if (!rawData) {
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user