fix(dashboard): enable hour interval for 7d

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-21 07:38:50 +02:00
parent 898e0994b4
commit dd19bffdb2

View File

@@ -81,6 +81,7 @@ export const chartTypes = {
area: 'Area',
map: 'Map',
funnel: 'Funnel',
retention: 'Retention',
} as const;
export const lineTypes = {
@@ -161,7 +162,9 @@ export function isMinuteIntervalEnabledByRange(
}
export function isHourIntervalEnabledByRange(range: keyof typeof timeWindows) {
return isMinuteIntervalEnabledByRange(range) || range === 'today';
return (
isMinuteIntervalEnabledByRange(range) || range === 'today' || range === '7d'
);
}
export function getDefaultIntervalByRange(