mirror of
https://github.com/elk-zone/elk
synced 2024-11-27 14:28:10 +09:00
fix: setting default values for draft
This commit is contained in:
parent
e11ed6250d
commit
26f2dec6b6
@ -23,13 +23,14 @@ export const currentUserDrafts = computed(() => {
|
||||
return allDrafts.value[id]
|
||||
})
|
||||
|
||||
export function getDefaultDraft({
|
||||
status = '',
|
||||
inReplyToId,
|
||||
visibility = 'public',
|
||||
placeholder = 'What is on your mind?',
|
||||
attachments = [],
|
||||
}: Partial<Draft['params'] & Omit<Draft, 'params'>> = {}): Draft {
|
||||
export function getDefaultDraft(options: Partial<Draft['params'] & Omit<Draft, 'params'>> = {}): Draft {
|
||||
const {
|
||||
status = '',
|
||||
inReplyToId,
|
||||
visibility = 'public',
|
||||
placeholder = 'What is on your mind?',
|
||||
attachments = [],
|
||||
} = options
|
||||
return {
|
||||
params: {
|
||||
status,
|
||||
|
Loading…
Reference in New Issue
Block a user