Unify the display name fallback behavior
This commit is contained in:
parent
4e56d24a9d
commit
9c02fbb925
3 changed files with 16 additions and 11 deletions
|
|
@ -66,15 +66,11 @@ export class SavedFeedsModel {
|
|||
}
|
||||
|
||||
get listOfFeedNames() {
|
||||
return this.feeds.map(
|
||||
f => f.data.displayName ?? f.data.creator.displayName + "'s feed",
|
||||
)
|
||||
return this.feeds.map(f => f.displayName)
|
||||
}
|
||||
|
||||
get listOfPinnedFeedNames() {
|
||||
return this.pinned.map(
|
||||
f => f.data.displayName ?? f.data.creator.displayName + "'s feed",
|
||||
)
|
||||
return this.pinned.map(f => f.displayName)
|
||||
}
|
||||
|
||||
get savedFeedsWithoutPinned() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue