I was trying to use the Material Angular autocomplete and I came across the displayWith function which can be apparently used to be the output that is displayed on selection
You just missed an undefined check before using attribute.
undefined
{{ user.first_name }} {{ user.last_name }} displayFn(user) { if (!user) return ''; return user.name; }