Skip to content

Commit

Permalink
feature: remove lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
taopkorczak committed Oct 17, 2023
1 parent fa495d2 commit d3f134a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions views/js/provider/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

/**
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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')));
}

Expand Down

0 comments on commit d3f134a

Please sign in to comment.