Browse Source

Destructure isUsed in assistant component

pull/3859/head
Matej Gerek 11 months ago
committed by Thomas Kaul
parent
commit
cd452eeb45
  1. 8
      libs/ui/src/lib/assistant/assistant.component.ts

8
libs/ui/src/lib/assistant/assistant.component.ts

@ -165,14 +165,12 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit {
}; };
}); });
this.tags = this.user?.tags this.tags = this.user?.tags
.filter((tag) => tag.isUsed) .filter(({ isUsed }) => isUsed)
.map(({ id, name }) => { .map(({ id, name }) => ({
return {
id, id,
label: translate(name), label: translate(name),
type: 'TAG' type: 'TAG'
}; }));
});
this.searchFormControl.valueChanges this.searchFormControl.valueChanges
.pipe( .pipe(

Loading…
Cancel
Save