Commit d5f6e431 authored by Artem Dmitriiev's avatar Artem Dmitriiev
Browse files

git commit -m 'Issue #3317431: Templates overview is broken when category was deleted'

parent 77a49cc0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ class ContentTemplateListBuilder extends EntityListBuilder {
      'entity.node.canonical',
      ['node' => $entity->get('field_source')->target_id]
    );
    $row['category'] = $entity->get('field_category')->isEmpty() ? $this->t('Uncategorized') : $entity->get('field_category')->entity->label();
    $row['category'] = $entity->get('field_category')->entity ? $entity->get('field_category')->entity->label() : $this->t('Uncategorized');
    return $row + parent::buildRow($entity);
  }