Seed edit form tags from effective tags (real + AI fallback)
All checks were successful
CI / build-and-deploy (push) Successful in 24s
All checks were successful
CI / build-and-deploy (push) Successful in 24s
The list row shows effectiveTags which merges real linkding tagNames with AI-enriched aiTags. If a bookmark has only AI tags, the edit form was appearing empty because it only seeded from tagNames. Now falls back to aiTags when tagNames is empty. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,8 @@ struct EditBookmarkView: View {
|
||||
_url = State(initialValue: bookmark.url)
|
||||
_title = State(initialValue: bookmark.title)
|
||||
_description = State(initialValue: bookmark.description)
|
||||
_tagsText = State(initialValue: bookmark.tagNames.joined(separator: ", "))
|
||||
let effectiveTags = bookmark.tagNames.isEmpty ? (bookmark.aiTags ?? []) : bookmark.tagNames
|
||||
_tagsText = State(initialValue: effectiveTags.joined(separator: ", "))
|
||||
_unread = State(initialValue: bookmark.unread)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user