Skip to content

Commit 821b29a

Browse files
committed
Verify that value is string
1 parent 6693c08 commit 821b29a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/js-data-http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ return /******/ (function(modules) { // webpackBootstrap
196196
value: function getPath(method, resourceConfig, id, options) {
197197
var _this = this;
198198
options = options || {};
199-
if (options.urlPath) {
199+
if (isString(options.urlPath)) {
200200
return makePath.apply(DSUtils, [options.basePath || _this.defaults.basePath || resourceConfig.basePath].concat(options.urlPath.split('/')));
201201
} else {
202202
var args = [options.basePath || _this.defaults.basePath || resourceConfig.basePath, this.getEndpoint(resourceConfig, isString(id) || isNumber(id) || method === 'create' ? id : null, options)];

0 commit comments

Comments
 (0)