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
.filter((tag) => tag.isUsed)
.map(({ id, name }) => {
return {
.filter(({ isUsed }) => isUsed)
.map(({ id, name }) => ({
id,
label: translate(name),
type: 'TAG'
};
});
}));
this.searchFormControl.valueChanges
.pipe(

Loading…
Cancel
Save