fix: visibility not updated, close #1299
This commit is contained in:
parent
c23c86a41a
commit
6dfc652fbf
|
|
@ -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")}`,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue