Improve pinned feed management

This commit is contained in:
Paul Frazee 2023-05-17 23:32:19 -05:00
parent bec94ed82c
commit 129fc42e95
3 changed files with 79 additions and 71 deletions

View file

@ -81,7 +81,7 @@ export class SavedFeedsModel {
togglePinnedFeed(feed: CustomFeedModel) {
if (!this.isPinned(feed)) {
this.pinned.push(feed)
this.pinned = [...this.pinned, feed]
} else {
this.removePinnedFeed(feed.data.uri)
}