Skip to content

Commit

Permalink
debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
codyzu committed Jul 26, 2023
1 parent 0f26032 commit 08097bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default function Upload() {

console.log('waiting for pages');
const nextPages = await Promise.all(uploadPromises);
console.log('pages done')
console.log('pages done');
const nextNotes = nextPages.map((_, pageIndex) => ({
pageIndices: [pageIndex] as [number, ...number[]],
markdown: '',
Expand All @@ -249,14 +249,14 @@ export default function Upload() {
}

setSavingState('saving');
console.log('updating doc with pages')
console.log('updating doc with pages');
await updateDoc(presentationRef, {
pages,
rendered: new Date(),
title,
notes,
} satisfies PresentationUpdate);
console.log('doc update done')
console.log('doc update done');
setUploadState('done');
setSavingState((currentState) =>
currentState === 'saving' ? 'saved' : currentState,
Expand Down

0 comments on commit 08097bf

Please sign in to comment.