Skip to content

Commit ef1a0a8

Browse files
ScottTrendacrobinson42
authored andcommitted
Take basePath from resourceConfig before global defaults
1 parent 6251c6e commit ef1a0a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ class DSHttpAdapter {
108108
let _this = this
109109
options || (options = {})
110110
if (isString(options.urlPath)) {
111-
return makePath.apply(DSUtils, [options.basePath || _this.defaults.basePath || resourceConfig.basePath, options.urlPath])
111+
return makePath.apply(DSUtils, [options.basePath || resourceConfig.basePath || _this.defaults.basePath, options.urlPath])
112112
} else {
113113
let args = [
114-
options.basePath || _this.defaults.basePath || resourceConfig.basePath,
114+
options.basePath || resourceConfig.basePath || _this.defaults.basePath,
115115
this.getEndpoint(resourceConfig, (isString(id) || isNumber(id) || method === 'create') ? id : null, options)
116116
]
117117
if (method === 'find' || method === 'update' || method === 'destroy') {

0 commit comments

Comments
 (0)