Skip to content

Commit

Permalink
fix(types): use null coalescing to provide default params
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddarth authored and Siddarth committed Jul 12, 2020
1 parent a556344 commit 6a7d923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class SampleDomainPath extends DomainPath {
const { puppeteerParams, urlParams } = config ?? {}

// add response listeners to save ajax/onchange responses
await this.setupPage(page, puppeteerParams)
await this.setupPage(page, puppeteerParams ?? {})

const url = urlParams?.url
if(typeof url === 'undefined') {
Expand Down

0 comments on commit 6a7d923

Please sign in to comment.