File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 7
7
* @api
8
8
*/
9
9
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 ) {
13
12
'use strict' ;
14
13
15
14
return Abstract . extend ( {
16
15
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
+
21
18
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
24
21
} ;
22
+
25
23
return this . _super ( ) ;
26
24
}
27
25
} ) ;
You can’t perform that action at this time.
0 commit comments