Skip to content

Commit e30e6d9

Browse files
committed
MC-23211: DropDown attribute with label 'select' break product edit page
1 parent e025a38 commit e30e6d9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/code/Magento/Backend/view/adminhtml/web/js/translate.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ define([
3535
* @return {String}
3636
*/
3737
this.translate = function (text) {
38-
if (_data[text] && typeof _data[text] === 'string') {
39-
return _data[text];
40-
}
41-
42-
return text;
38+
return (typeof _data[text] === 'string') ? _data[text]: text
4339
};
4440

4541
return this;

0 commit comments

Comments
 (0)