Skip to content

Commit 81378b6

Browse files
committed
refactor: - applyQueryLayoutOptions() returns result
1 parent 6b6f102 commit 81378b6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Layout/TaskLayout.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export class QueryLayout {
4444
}
4545
}
4646

47-
protected applyQueryLayoutOptions(taskListHiddenClasses: string[]) {
47+
protected applyQueryLayoutOptions() {
48+
const taskListHiddenClasses: string[] = [];
4849
const componentsToGenerateClassesOnly: [boolean, string][] = [
4950
// The following components are handled in QueryRenderer.ts and thus are not part of the same flow that
5051
// hides TaskLayoutComponent items. However, we still want to have 'tasks-layout-hide' items for them
@@ -61,6 +62,8 @@ export class QueryLayout {
6162
}
6263

6364
if (this.queryLayoutOptions.shortMode) taskListHiddenClasses.push('tasks-layout-short-mode');
65+
66+
return taskListHiddenClasses;
6467
}
6568
}
6669

@@ -94,8 +97,8 @@ export class TaskLayout extends QueryLayout {
9497
} else {
9598
this.taskLayoutOptions = new TaskLayoutOptions();
9699
}
97-
this._taskListHiddenClasses = this.applyTaskLayoutOptions();
98-
this.applyQueryLayoutOptions(this._taskListHiddenClasses);
100+
101+
this._taskListHiddenClasses = [...this.applyTaskLayoutOptions(), ...this.applyQueryLayoutOptions()];
99102
}
100103
private applyTaskLayoutOptions() {
101104
const taskListHiddenClasses: string[] = [];

0 commit comments

Comments
 (0)