fix: visibility not updated, close #1299

This commit is contained in:
DIYgod 2024-01-18 21:37:24 +08:00
parent c23c86a41a
commit 6dfc652fbf
No known key found for this signature in database
1 changed files with 4 additions and 3 deletions

View File

@ -176,7 +176,7 @@ export default function PostEditor() {
}
useEditorState.setState(newValues)
},
[type, queryClient, subdomain, visibility],
[visibility, site.data?.characterId, type, queryClient],
)
const isMobileLayout = useIsMobileLayout()
@ -236,8 +236,9 @@ export default function PostEditor() {
if (createPage.data?.noteId) {
router.replace(
`/dashboard/${subdomain}/editor?id=${createPage.data
?.noteId}&type=${searchParams?.get("type")}`,
`/dashboard/${subdomain}/editor?id=${
createPage.data?.noteId
}&type=${searchParams?.get("type")}`,
)
}