Skip to content
Snippets Groups Projects
Unverified Commit f67251a9 authored by chris48s's avatar chris48s Committed by GitHub
Browse files

don't try to call .entries on null or undefined (#8757)

parent 00f35c67
No related branches found
No related tags found
No related merge requests found
...@@ -221,7 +221,7 @@ class BaseService { ...@@ -221,7 +221,7 @@ class BaseService {
const logTrace = (...args) => trace.logTrace('fetch', ...args) const logTrace = (...args) => trace.logTrace('fetch', ...args)
let logUrl = url let logUrl = url
const logOptions = Object.assign({}, options) const logOptions = Object.assign({}, options)
if ('searchParams' in options) { if ('searchParams' in options && options.searchParams != null) {
const params = new URLSearchParams( const params = new URLSearchParams(
Object.fromEntries( Object.fromEntries(
Object.entries(options.searchParams).filter( Object.entries(options.searchParams).filter(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment