Fix tag assignment in post UI

This commit is contained in:
Christoph Hagen
2025-06-16 10:09:38 +02:00
parent 1d0eba9d78
commit 8508719dbe
13 changed files with 74 additions and 54 deletions

View File

@@ -47,6 +47,7 @@ struct PostDetailView: View {
footer: "The id is used to link to post and store them",
validation: post.isValid,
update: { post.update(id: $0) })
.id(post.id)
BoolPropertyView(
title: "Draft",
@@ -69,6 +70,7 @@ struct PostDetailView: View {
selectedPage: $post.linkedPage,
footer: "The page to open when clicking on the post")
.onChange(of: post.linkedPage) { oldValue, newValue in
if newValue != nil {
post.tags = []
} else {