fix
This commit is contained in:
@@ -482,7 +482,7 @@ class LinkMultipleWithColumnsFieldView extends LinkMultipleFieldView {
|
||||
if (this.isEditMode()) {
|
||||
$columnList.forEach($column => {
|
||||
|
||||
if ($column.get(0).tagName === 'SELECT') {
|
||||
if ($column.get(0) && $column.get(0).tagName === 'SELECT') {
|
||||
Select.init($column);
|
||||
}
|
||||
|
||||
|
||||
@@ -296,7 +296,7 @@ class LinkMultipleWithRoleFieldView extends LinkMultipleFieldView {
|
||||
$role = $el.find('input.role');
|
||||
}
|
||||
|
||||
if ($role && $role.get(0).tagName === 'SELECT') {
|
||||
if ($role && $role.get(0) && $role.get(0).tagName === 'SELECT') {
|
||||
Select.init($role);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user