Skip to content

Commit b4bc785

Browse files
committed
PB-500 fix static tests eslint
1 parent d2aa8ec commit b4bc785

File tree

1 file changed

+7
-9
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element

1 file changed

+7
-9
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element/grid-size.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,19 @@
77
* @api
88
*/
99
define([
10-
'Magento_Ui/js/form/element/abstract',
11-
'Magento_Ui/js/lib/validation/validator'
12-
], function (Abstract, validator) {
10+
'Magento_Ui/js/form/element/abstract'
11+
], function (Abstract) {
1312
'use strict';
1413

1514
return Abstract.extend({
1615
validate: function () {
17-
var formQuery = 'index=' + this.ns;
18-
var externalForm = this.requestModule(formQuery)();
19-
var nonEmptyColumnCount = externalForm.source.data.non_empty_column_count;
20-
var maxGridSize = externalForm.source.data.max_grid_size;
16+
var externalFormSourceData = this.requestModule('index=' + this.ns)().source.data;
17+
2118
this.validationParams = {
22-
'non_empty_column_count': nonEmptyColumnCount,
23-
'max_grid_size': maxGridSize
19+
'non_empty_column_count': externalFormSourceData.non_empty_column_count,
20+
'max_grid_size': externalFormSourceData.max_grid_size
2421
};
22+
2523
return this._super();
2624
}
2725
});

0 commit comments

Comments
 (0)