From a5c692cb090c7c2500fc07f5ebc1f4d9b5b62611 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Sun, 12 Jan 2025 21:23:27 +0100 Subject: [PATCH] Use post id for template texts --- CHDataManagement/Views/Posts/AddPostView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHDataManagement/Views/Posts/AddPostView.swift b/CHDataManagement/Views/Posts/AddPostView.swift index 6915189..c1ad80b 100644 --- a/CHDataManagement/Views/Posts/AddPostView.swift +++ b/CHDataManagement/Views/Posts/AddPostView.swift @@ -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()