Skip to content

Commit

Permalink
Refactor code: inline variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Knicksaas committed Jul 4, 2024
1 parent b6bbe76 commit 39fcbd6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions eclipse-scout-core/src/calendar/Calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1469,8 +1469,6 @@ export class Calendar extends Widget implements CalendarModel {
* Renders the panel on the left, showing all components of the selected date.
*/
protected _renderListPanel() {
let listComponent: CalendarListComponent, components: CalendarComponent[] = [];

// set title
this.$listTitle.text(this._format(this.selectedDate, 'd. MMMM yyyy'));

Expand All @@ -1479,7 +1477,7 @@ export class Calendar extends Widget implements CalendarModel {
.filter(comp => this._filterCurrentDate(comp))
.filter(comp => this._filterVisibleComponents(comp))
.forEach(comp => {
listComponent = new CalendarListComponent(this.selectedDate, comp);
let listComponent = new CalendarListComponent(this.selectedDate, comp);
listComponent.render(this.$list);
this._listComponents.push(listComponent);
});
Expand Down

0 comments on commit 39fcbd6

Please sign in to comment.