fix: draft name conflict

This commit is contained in:
DIYgod 2022-10-21 02:35:18 +01:00
parent 06f0e91ea4
commit 5ac07defcc
No known key found for this signature in database
GPG Key ID: D159328F47A80DCA
1 changed files with 1 additions and 1 deletions

View File

@ -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({