Skip to content

Commit

Permalink
fix: remove first load on dasahboard mount
Browse files Browse the repository at this point in the history
  • Loading branch information
maximeperrault authored and maximeperraultdev committed Jan 20, 2025
1 parent 8a72917 commit e290a3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function GeneratePdfButton({ dashboard }: GeneratePdfButtonProps) {
]
)

const [pdf, update] = usePDF({ document: <Brief brief={brief} /> })
const [pdf, update] = usePDF()

const handleDownload = () => {
setIsGenerating(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function GeneratePdfButton({ dashboard }: GeneratePdfButtonProps) {
]
)

const [pdf, update] = usePDF({ document: <Brief brief={brief} /> })
const [pdf, update] = usePDF()

const handleDownload = () => {
setIsGenerating(true)
Expand Down

0 comments on commit e290a3a

Please sign in to comment.