Skip to content

Commit

Permalink
Fix mage utils dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Krzeszowiak committed Apr 20, 2020
1 parent fe00511 commit d64eaf4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/web/mage/utils/objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
define([
'ko',
'jquery',
'underscore'
], function (ko, $, _) {
'underscore',
'mage/utils/strings'
], function (ko, $, _, stringUtils) {
'use strict';

var primitives = [
Expand Down Expand Up @@ -217,7 +218,7 @@ define([
data = this.flatten(data);

_.each(data, function (value, keys) {
keys = this.serializeName(keys);
keys = stringUtils.serializeName(keys);
value = _.isUndefined(value) ? '' : value;

result[keys] = value;
Expand Down

0 comments on commit d64eaf4

Please sign in to comment.