Skip to content

Commit

Permalink
added possibly a better way to create drafts in import
Browse files Browse the repository at this point in the history
  • Loading branch information
iskaktoltay committed Nov 19, 2024
1 parent 7f8911c commit c196c54
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions frontend/apps/desktop/src/components/import-doc-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,19 @@ export function ImportDropdownButton({
// })
// }

// const newId = hmId('d', id.uid, {
// path: [...(id.path || []), path],
// })

// const packedId = packHmId(newId)

// console.log(packedId)

// await createDraft.mutateAsync({
// id: packedId,
// draft: inputData,
// })

await createDraft.mutateAsync({
id: id.id + '/' + path,
draft: inputData,
Expand Down

0 comments on commit c196c54

Please sign in to comment.