FIX: title should attempt to fallback to label before name (#9739)

This commit is contained in:
Joffrey JAFFEUX 2020-05-11 18:42:18 +02:00 committed by GitHub
parent 4d137b4f89
commit c6bf552ca3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ export default Component.extend(UtilsMixin, {
}),
title: computed("item", function() {
return this._safeProperty("title", this.item) || this.name || "";
return (
this._safeProperty("title", this.item) || this.label || this.name || ""
);
}),
label: computed("title", "name", function() {