This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit e4eff121 authored by Daniel Rainer's avatar Daniel Rainer
Browse files

Use type parameter with set

parent db329121
No related merge requests found
......@@ -12,7 +12,7 @@ export class MetadataComponent {
@Input() parameter!: string;
testString = '';
selectedItems = new Set();
selectedItems = new Set<string>();
constructor(public messageService: MetadataMessageService) {}
......@@ -33,6 +33,6 @@ export class MetadataComponent {
for (const selectedItem of this.selectedItems) {
this.messageService.updateFilterSelection(this.parameter, selectedItem);
}
this.selectedItems = new Set();
this.selectedItems = new Set<string>();
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment