Use post id for template texts

This commit is contained in:
Christoph Hagen 2025-01-12 21:23:27 +01:00
parent 0beadc2ec8
commit a5c692cb09

@ -72,8 +72,8 @@ struct AddPostView: View {
startDate: .now,
endDate: nil,
tags: [],
german: .init(content: content, title: "Titel", text: "Text"),
english: .init(content: content, title: "Title", text: "Text"))
german: .init(content: content, title: newPostId, text: ""),
english: .init(content: content, title: newPostId, text: ""))
content.posts.insert(post, at: 0)
selectedPost = post
dismissSheet()