mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 06:24:48 +08:00
FIX: title should attempt to fallback to label before name (#9739)
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user