mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
fix(ui): correct viewChild syntax for visibility menu trigger
The generic type parameter on viewChild() conflicts with the read option.
Remove it to match the pattern used elsewhere in the codebase.
Fixes compilation error introduced in 1bb61fdd4.
This commit is contained in:
parent
1bb61fdd4b
commit
00d5dbcdff
1 changed files with 1 additions and 3 deletions
|
|
@ -72,9 +72,7 @@ export class NavListTreeComponent {
|
|||
readonly allUnarchivedProjects = this._navConfigService.allUnarchivedProjects;
|
||||
|
||||
// ViewChild for visibility menu trigger to close menu after toggling
|
||||
visibilityMenuTrigger = viewChild<MatMenuTrigger>('visibilityBtn', {
|
||||
read: MatMenuTrigger,
|
||||
});
|
||||
visibilityMenuTrigger = viewChild('visibilityBtn', { read: MatMenuTrigger });
|
||||
|
||||
readonly treeNodes = signal<TreeNode<MenuTreeViewNode>[]>([]);
|
||||
readonly treeKind = computed<MenuTreeKind>(() => this.item().treeKind);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue