Skip to content

Commit

Permalink
Merge pull request #360 from oat-sa/feature/ADF-1579/lodash-remove
Browse files Browse the repository at this point in the history
feature: remove lodash
  • Loading branch information
wazelin authored Feb 1, 2024
2 parents df53717 + 15849d3 commit 8826c62
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions views/js/controller/DeliveryTool/launchQueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
*/

define([
'lodash',
'module',
'core/polling',
'core/request',
], function (_, module, polling, request) {
], function (module, polling, request) {
'use strict';

const _defaultConfig = {
Expand All @@ -35,7 +34,11 @@ define([
return {
start() {
const { relaunchConfig = {} } = module.config();
const { capacityCheckUrl, relaunchInterval, runUrl } = _.defaults(relaunchConfig, _defaultConfig);
const {
capacityCheckUrl = _defaultConfig.capacityCheckUrl,
relaunchInterval = _defaultConfig.relaunchInterval,
runUrl = _defaultConfig.runUrl
} = relaunchConfig;

polling({
action: function () {
Expand Down

0 comments on commit 8826c62

Please sign in to comment.