Misc half fixes
This commit is contained in:
@@ -153,7 +153,10 @@ export class TimeManager {
|
||||
getDateRange(period) {
|
||||
const now = this.getNow();
|
||||
|
||||
switch (period) {
|
||||
// Normalize period to handle both 'last' and 'previous' prefixes
|
||||
const normalizedPeriod = period.startsWith('previous') ? period.replace('previous', 'last') : period;
|
||||
|
||||
switch (normalizedPeriod) {
|
||||
case 'custom': {
|
||||
// Custom ranges are handled separately via getCustomRange
|
||||
console.warn('[TimeManager] Custom ranges should use getCustomRange method');
|
||||
|
||||
Reference in New Issue
Block a user