mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-01 00:45:53 +00:00
Update template.component.ts
This commit is contained in:
parent
11e116f508
commit
79dee73590
@ -51,7 +51,7 @@ export class TemplateComponent implements OnInit {
|
||||
return item.name.toLowerCase().includes(this.searchText.toLowerCase());
|
||||
});
|
||||
|
||||
if (this.selectedType === 'all') {
|
||||
if (this.selectedType === 'all' || !this.selectedType) {
|
||||
this.filteredTemplates = temporaryTemplates;
|
||||
} else {
|
||||
this.filteredTemplates = temporaryTemplates.filter(t => t.template_type === this.selectedType);
|
||||
|
Loading…
x
Reference in New Issue
Block a user