-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa495d2
commit d3f134a
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* @author Alexander Zagovorichev <[email protected]> | ||
*/ | ||
|
||
define(['jquery', 'lodash', 'i18n', 'util/url', 'core/promise', 'core/request'], function ($, _, __, urlUtil, Promise, coreRequest) { | ||
define(['jquery', 'i18n', 'util/url', 'core/promise', 'core/request'], function ($, __, urlUtil, Promise, coreRequest) { | ||
'use strict'; | ||
|
||
/** | ||
|
@@ -52,7 +52,7 @@ define(['jquery', 'lodash', 'i18n', 'util/url', 'core/promise', 'core/request'], | |
type: 'instance' | ||
}; | ||
|
||
config = _.defaults(config || {}, _defaults); | ||
config = Object.assign({}, _defaults, config); | ||
|
||
return new Promise((resolve, reject) => { | ||
coreRequest({ | ||
|
@@ -80,7 +80,7 @@ define(['jquery', 'lodash', 'i18n', 'util/url', 'core/promise', 'core/request'], | |
|
||
return new Promise((resolve, reject) => { | ||
|
||
if (!_.isString(uri) || _.isEmpty(uri)) { | ||
if (typeof uri !== 'string' || uri.trim() === '') { | ||
return reject(new TypeError(__('Group uri is not valid'))); | ||
} | ||
|
||
|