Skip to content

Commit c32cd20

Browse files
committed
ACP2E-258:Fixed added default product grid view crashes after creating custom one
1 parent cf3e371 commit c32cd20

File tree

1 file changed

+1
-3
lines changed
  • app/code/Magento/Ui/view/base/web/js/grid/controls/bookmarks

1 file changed

+1
-3
lines changed

app/code/Magento/Ui/view/base/web/js/grid/controls/bookmarks/bookmarks.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,10 @@ define([
104104
initDefaultView: function () {
105105
var data = this.getViewData(this.defaultIndex);
106106

107-
if (!_.size(data)) {
108-
if (this.current.columns && this.current.positions) {
107+
if (!_.size(data) && (this.current.columns && this.current.positions)) {
109108
this.setViewData(this.defaultIndex, this.current)
110109
.saveView(this.defaultIndex);
111110
this.defaultDefined = true;
112-
}
113111
}
114112

115113
return this;

0 commit comments

Comments
 (0)