mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-08 04:10:16 +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());
|
return item.name.toLowerCase().includes(this.searchText.toLowerCase());
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.selectedType === 'all') {
|
if (this.selectedType === 'all' || !this.selectedType) {
|
||||||
this.filteredTemplates = temporaryTemplates;
|
this.filteredTemplates = temporaryTemplates;
|
||||||
} else {
|
} else {
|
||||||
this.filteredTemplates = temporaryTemplates.filter(t => t.template_type === this.selectedType);
|
this.filteredTemplates = temporaryTemplates.filter(t => t.template_type === this.selectedType);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user