Skip to content

Commit

Permalink
docs: update example to ensure query is not undefined (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmingv authored Sep 19, 2022
1 parent 363339d commit fde55ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ await $fetch('/api', {
console.log('[fetch request]', request, options)

// Add `?t=1640125211170` to query search params
options.query = options.query
options.query = options.query || {}
options.query.t = new Date()
}
})
Expand Down

0 comments on commit fde55ba

Please sign in to comment.