From 7d1b53bac6f3dbc0f12385ce01b571a8124750f5 Mon Sep 17 00:00:00 2001 From: Krishna Kumar Date: Thu, 21 May 2026 12:33:24 -0500 Subject: [PATCH] Seed edit form tags from effective tags (real + AI fallback) 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 --- Marks/Views/EditBookmarkView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Marks/Views/EditBookmarkView.swift b/Marks/Views/EditBookmarkView.swift index 9ae6404..33430e2 100644 --- a/Marks/Views/EditBookmarkView.swift +++ b/Marks/Views/EditBookmarkView.swift @@ -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) }