refactor: improve UI & types
This commit is contained in:
parent
86c29776a1
commit
2ab3d5dbe7
9 changed files with 18 additions and 15 deletions
|
@ -14,7 +14,7 @@ export type DraftMap = Record<string, Draft>
|
|||
const allDrafts = useLocalStorage<Record<string, DraftMap>>(STORAGE_KEY_DRAFTS, {})
|
||||
|
||||
export const currentUserDrafts = computed(() => {
|
||||
if (!currentUser.value?.account?.id)
|
||||
if (!currentUser.value?.account.id)
|
||||
return {}
|
||||
const id = `${currentUser.value.account.acct}@${currentUser.value.server}`
|
||||
if (!allDrafts.value[id])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue