diff --git a/public/js/pimcore/element/helpers/gridCellEditor.js b/public/js/pimcore/element/helpers/gridCellEditor.js index a5aa37a17..a8d631dd4 100644 --- a/public/js/pimcore/element/helpers/gridCellEditor.js +++ b/public/js/pimcore/element/helpers/gridCellEditor.js @@ -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({ diff --git a/public/js/pimcore/element/helpers/gridColumnConfig.js b/public/js/pimcore/element/helpers/gridColumnConfig.js index c5470d90b..180197f7d 100644 --- a/public/js/pimcore/element/helpers/gridColumnConfig.js +++ b/public/js/pimcore/element/helpers/gridColumnConfig.js @@ -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({