fix: draft name conflict
This commit is contained in:
parent
06f0e91ea4
commit
5ac07defcc
|
|
@ -130,7 +130,7 @@ const expandPage = (page: Note, render: boolean) => {
|
|||
|
||||
const getLocalPages = (input: { site: string; isPost?: boolean }) => {
|
||||
const pages: Note[] = []
|
||||
getKeys(`draft-${input.site}`).forEach((key) => {
|
||||
getKeys(`draft-${input.site}-`).forEach((key) => {
|
||||
const page = getStorage(key)
|
||||
if (input.isPost === undefined || page.isPost === input.isPost) {
|
||||
pages.push({
|
||||
|
|
|
|||
Loading…
Reference in New Issue