From 7ac65707f892daa73e900c99ad124e778c977cac Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Sat, 6 Jan 2024 00:45:42 +0800 Subject: [PATCH] fix: default visibility to draft (#1236) --- src/app/[locale]/dashboard/[subdomain]/editor/post-editor.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/[locale]/dashboard/[subdomain]/editor/post-editor.tsx b/src/app/[locale]/dashboard/[subdomain]/editor/post-editor.tsx index b054fb05..d84a8208 100644 --- a/src/app/[locale]/dashboard/[subdomain]/editor/post-editor.tsx +++ b/src/app/[locale]/dashboard/[subdomain]/editor/post-editor.tsx @@ -113,7 +113,9 @@ export default function PostEditor() { disableAutofill: true, }) - const [visibility, setVisibility] = useState() + const [visibility, setVisibility] = useState( + PageVisibilityEnum.Draft, + ) useEffect(() => { if (page.isSuccess) {