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 =
|
const data =
|
||||||
notEnoughData || isLoading ? placeholderData : aggregateOrProjectData;
|
notEnoughData || isLoading ? placeholderData : aggregateOrProjectData;
|
||||||
|
|
||||||
const flagTypeNames = (aggregateHealthData as any).flagTypeNames || [];
|
const flagTypeNames = aggregateHealthData.flagTypeNames || [];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Chart
|
<Chart
|
||||||
type='bar'
|
type='bar'
|
||||||
data={data as any}
|
data={data}
|
||||||
options={{
|
options={{
|
||||||
responsive: true,
|
responsive: true,
|
||||||
plugins: {
|
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 type { TooltipState } from 'component/insights/components/LineChart/ChartTooltip/ChartTooltip';
|
||||||
import { ChartTooltipContainer } 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,
|
CREATED: theme.palette.success.main,
|
||||||
ARCHIVED: theme.palette.background.application,
|
ARCHIVED: theme.palette.background.application,
|
||||||
});
|
});
|
||||||
@ -42,7 +42,7 @@ export const CreationArchiveRatioTooltip: FC<
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const rawData = ratioDataPoint.raw as any;
|
const rawData = ratioDataPoint.raw as RatioDataPointRaw;
|
||||||
|
|
||||||
if (!rawData) {
|
if (!rawData) {
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user