Skip to content

Commit

Permalink
don't try to call .entries on null or undefined (#8757)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Dec 29, 2022
1 parent 00f35c6 commit f67251a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/base-service/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class BaseService {
const logTrace = (...args) => trace.logTrace('fetch', ...args)
let logUrl = url
const logOptions = Object.assign({}, options)
if ('searchParams' in options) {
if ('searchParams' in options && options.searchParams != null) {
const params = new URLSearchParams(
Object.fromEntries(
Object.entries(options.searchParams).filter(
Expand Down

0 comments on commit f67251a

Please sign in to comment.