Skip to content

Commit

Permalink
The layout should always exists, otherwise it will break before
Browse files Browse the repository at this point in the history
  • Loading branch information
blankse committed Nov 6, 2024
1 parent 1bddd12 commit b0c99ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/js/pimcore/element/helpers/gridCellEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Ext.define('pimcore.element.helpers.gridCellEditor', {
bodyStyle: "padding: 10px;"
});
let width = 700;
if (tagType === 'manyToManyObjectRelation' && fieldInfo?.layout?.width) {
if (tagType === 'manyToManyObjectRelation' && fieldInfo.layout.width) {
width = fieldInfo.layout.width + 25;
}
this.editWin = new Ext.Window({
Expand Down
2 changes: 1 addition & 1 deletion public/js/pimcore/element/helpers/gridColumnConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ pimcore.element.helpers.gridColumnConfig = {

const title = t("filter_by_relation_field") + " " + fieldInfo.text;
let width = 700;
if (tagType === 'manyToManyObjectRelation' && fieldInfo?.layout?.layout?.width) {
if (tagType === 'manyToManyObjectRelation' && fieldInfo.layout.layout.width) {
width = fieldInfo.layout.layout.width + 25;
}
this.filterByRelationWindow = new Ext.Window({
Expand Down

0 comments on commit b0c99ca

Please sign in to comment.