+3
-1
lines changedFilter options
+3
-1
lines changed Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
1
1
import getProp from 'dotprop'
2
2
import setProp from 'dset'
3
+
import merge from 'merge'
3
4
import { serialize } from 'object-to-formdata'
4
5
5
6
import Builder from './Builder'
@@ -305,7 +306,8 @@ export default class Model extends StaticModel {
305
306
}
306
307
307
308
_reqConfig(config, options = { forceMethod: false }) {
308
-
const _config = { ...config, ...this._config }
309
+
// Merge cloned config to prevent changing the original config objects
310
+
const _config = merge.recursive({ ...config }, { ...this._config })
309
311
310
312
// Prevent default request method from being overridden
311
313
if (options.forceMethod) {
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4