fix: editor auto fill
This commit is contained in:
parent
3bf8c1d3ba
commit
323fbc9422
|
|
@ -83,6 +83,7 @@ export default function PortfolioEditor() {
|
|||
noteId: pageId && /\d+/.test(pageId) ? +pageId : undefined,
|
||||
slug: pageId || draftKey.replace(`draft-${site.data?.characterId}-`, ""),
|
||||
handle: subdomain,
|
||||
disableAutofill: true,
|
||||
})
|
||||
|
||||
const [visibility, setVisibility] = useState<PageVisibilityEnum>()
|
||||
|
|
|
|||
|
|
@ -106,6 +106,7 @@ export default function PostEditor() {
|
|||
noteId: pageId && /\d+/.test(pageId) ? +pageId : undefined,
|
||||
slug: pageId || draftKey.replace(`draft-${site.data?.characterId}-`, ""),
|
||||
handle: subdomain,
|
||||
disableAutofill: true,
|
||||
})
|
||||
|
||||
const [visibility, setVisibility] = useState<PageVisibilityEnum>()
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ export default function ShortEditor() {
|
|||
noteId: pageId && /\d+/.test(pageId) ? +pageId : undefined,
|
||||
slug: pageId || draftKey.replace(`draft-${site.data?.characterId}-`, ""),
|
||||
handle: subdomain,
|
||||
disableAutofill: true,
|
||||
})
|
||||
|
||||
const [visibility, setVisibility] = useState<PageVisibilityEnum>()
|
||||
|
|
|
|||
|
|
@ -409,6 +409,7 @@ export async function getPage<TRender extends boolean = false>(input: {
|
|||
useStat?: boolean
|
||||
noteId?: number
|
||||
handle?: string // In order to be compatible with old drafts
|
||||
disableAutofill?: boolean
|
||||
}) {
|
||||
const mustLocal = input.slug?.startsWith("!local-") && !input.noteId
|
||||
|
||||
|
|
@ -559,6 +560,7 @@ export async function getPage<TRender extends boolean = false>(input: {
|
|||
expandedNote = await expandCrossbellNote({
|
||||
note: page,
|
||||
useStat: input.useStat,
|
||||
disableAutofill: input.disableAutofill,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ export const useGetPage = (
|
|||
noteId: input.noteId,
|
||||
useStat: input.useStat,
|
||||
handle: input.handle,
|
||||
disableAutofill: input.disableAutofill,
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue