Skip to content

Commit

Permalink
macOS: Fix issue with not being able to add favorites for existing bo…
Browse files Browse the repository at this point in the history
…okmarks in the latest 1.70.0 internal (#2059)

Task/Issue URL: https://app.asana.com/0/0/1206339303679760/f

Description
This is broken only on our internals.
If a bookmark exists, the user cannot add it as a favorite through the "Add favorite" option in the home page.
  • Loading branch information
diegoreymendez authored Jan 12, 2024
1 parent b287870 commit 24065de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct AddBookmarkModalViewModel {
}

var result: Bookmark?
if var bookmark = originalBookmark {
if var bookmark = originalBookmark ?? bookmarkManager.getBookmark(for: url) {

if url.absoluteString != bookmark.url {
bookmark = bookmarkManager.updateUrl(of: bookmark, to: url) ?? bookmark
Expand Down

0 comments on commit 24065de

Please sign in to comment.