diff --git a/composables/masto/publish.ts b/composables/masto/publish.ts index 3d611a79..f6dd9df8 100644 --- a/composables/masto/publish.ts +++ b/composables/masto/publish.ts @@ -87,8 +87,8 @@ export function usePublish(options: { } let scheduledAt - if (draft.value.params.scheduledAt) - scheduledAt = new Date(draft.value.params.scheduledAt).toISOString() + if (draftItem.value.params.scheduledAt) + scheduledAt = new Date(draftItem.value.params.scheduledAt).toISOString() const payload = { ...draftItem.value.params,