|
|
@ -397,19 +397,17 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit { |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (this.user?.settings?.isExperimentalFeatures) { |
|
|
this.dateRangeOptions = this.dateRangeOptions.concat( |
|
|
this.dateRangeOptions = this.dateRangeOptions.concat( |
|
|
eachYearOfInterval({ |
|
|
eachYearOfInterval({ |
|
|
end: new Date(), |
|
|
end: new Date(), |
|
|
start: this.user?.dateOfFirstActivity ?? new Date() |
|
|
start: this.user?.dateOfFirstActivity ?? new Date() |
|
|
}) |
|
|
|
|
|
.map((date) => { |
|
|
|
|
|
return { label: format(date, 'yyyy'), value: format(date, 'yyyy') }; |
|
|
}) |
|
|
}) |
|
|
.map((date) => { |
|
|
.slice(0, -1) |
|
|
return { label: format(date, 'yyyy'), value: format(date, 'yyyy') }; |
|
|
.reverse() |
|
|
}) |
|
|
); |
|
|
.slice(0, -1) |
|
|
|
|
|
.reverse() |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
if ( |
|
|
this.user?.dateOfFirstActivity && |
|
|
this.user?.dateOfFirstActivity && |
|
|
|