File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,7 @@ export class TaskGroups {
35
35
this . sortTaskGroups ( ) ;
36
36
37
37
// Get the headings, now that the groups have been sorted.
38
- const displayHeadingSelector = new GroupDisplayHeadingSelector ( taskGroupingTree . groups , this . _groupers ) ;
39
- for ( const group of this . _groups ) {
40
- group . setGroupHeadings ( displayHeadingSelector . getHeadingsForTaskGroup ( group . groups ) ) ;
41
- }
38
+ this . setGroupsHeadings ( taskGroupingTree ) ;
42
39
}
43
40
44
41
/**
@@ -128,4 +125,11 @@ export class TaskGroups {
128
125
} ;
129
126
this . _groups . sort ( compareFn ) ;
130
127
}
128
+
129
+ private setGroupsHeadings ( taskGroupingTree : TaskGroupingTree ) {
130
+ const displayHeadingSelector = new GroupDisplayHeadingSelector ( taskGroupingTree . groups , this . _groupers ) ;
131
+ for ( const group of this . _groups ) {
132
+ group . setGroupHeadings ( displayHeadingSelector . getHeadingsForTaskGroup ( group . groups ) ) ;
133
+ }
134
+ }
131
135
}
You can’t perform that action at this time.
0 commit comments