@sanity/client 0.0.0-dev.1 → 0.0.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -799,12 +799,11 @@ function _requestObservable(client, httpRequest, options) {
799
799
  console.error("You need to set `apiVersion` to `X` to use `unstable_overlayDrafts");
800
800
  }
801
801
  options.query = {
802
+ ...options.query,
802
803
  params: {
803
- ...(options.query.params || {
804
- draftMode: true
805
- })
806
- },
807
- ...options.query
804
+ ...(options.query.params || {}),
805
+ draftMode: true
806
+ }
808
807
  };
809
808
  }
810
809
  const reqOptions = requestOptions(config, Object.assign({}, options, {