fix(dashboard): enable hour interval for 7d
This commit is contained in:
@@ -81,6 +81,7 @@ export const chartTypes = {
|
|||||||
area: 'Area',
|
area: 'Area',
|
||||||
map: 'Map',
|
map: 'Map',
|
||||||
funnel: 'Funnel',
|
funnel: 'Funnel',
|
||||||
|
retention: 'Retention',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const lineTypes = {
|
export const lineTypes = {
|
||||||
@@ -161,7 +162,9 @@ export function isMinuteIntervalEnabledByRange(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function isHourIntervalEnabledByRange(range: keyof typeof timeWindows) {
|
export function isHourIntervalEnabledByRange(range: keyof typeof timeWindows) {
|
||||||
return isMinuteIntervalEnabledByRange(range) || range === 'today';
|
return (
|
||||||
|
isMinuteIntervalEnabledByRange(range) || range === 'today' || range === '7d'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getDefaultIntervalByRange(
|
export function getDefaultIntervalByRange(
|
||||||
|
|||||||
Reference in New Issue
Block a user