File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ export class QueryLayout {
44
44
}
45
45
}
46
46
47
- protected applyQueryLayoutOptions ( taskListHiddenClasses : string [ ] ) {
47
+ protected applyQueryLayoutOptions ( ) {
48
+ const taskListHiddenClasses : string [ ] = [ ] ;
48
49
const componentsToGenerateClassesOnly : [ boolean , string ] [ ] = [
49
50
// The following components are handled in QueryRenderer.ts and thus are not part of the same flow that
50
51
// hides TaskLayoutComponent items. However, we still want to have 'tasks-layout-hide' items for them
@@ -61,6 +62,8 @@ export class QueryLayout {
61
62
}
62
63
63
64
if ( this . queryLayoutOptions . shortMode ) taskListHiddenClasses . push ( 'tasks-layout-short-mode' ) ;
65
+
66
+ return taskListHiddenClasses ;
64
67
}
65
68
}
66
69
@@ -94,8 +97,8 @@ export class TaskLayout extends QueryLayout {
94
97
} else {
95
98
this . taskLayoutOptions = new TaskLayoutOptions ( ) ;
96
99
}
97
- this . _taskListHiddenClasses = this . applyTaskLayoutOptions ( ) ;
98
- this . applyQueryLayoutOptions ( this . _taskListHiddenClasses ) ;
100
+
101
+ this . _taskListHiddenClasses = [ ... this . applyTaskLayoutOptions ( ) , ... this . applyQueryLayoutOptions ( ) ] ;
99
102
}
100
103
private applyTaskLayoutOptions ( ) {
101
104
const taskListHiddenClasses : string [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments