Skip to content

Commit fadc9c5

Browse files
MAGETWO-82537: MAGETWO-81311: Check the length of the array before attempting to sli… #11637
2 parents ec61612 + 1c80a76 commit fadc9c5

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Ui/view/base/web/js/form/element

1 file changed

+2
-2
lines changed

app/code/Magento/Ui/view/base/web/js/form/element/abstract.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ define([
118118

119119
this._super();
120120

121-
scope = this.dataScope;
122-
name = scope.split('.').slice(1);
121+
scope = this.dataScope.split('.');
122+
name = scope.length > 1 ? scope.slice(1) : scope;
123123

124124
valueUpdate = this.showFallbackReset ? 'afterkeydown' : this.valueUpdate;
125125

0 commit comments

Comments
 (0)