Browse Source

Add filter on init to assistant component

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

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

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

Loading…
Cancel
Save