From 4b39d4e204fa1eedb9142f4ac60680df54632810 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 26 Aug 2022 17:54:24 +0200 Subject: [PATCH] Fix resize. --- .../shared/components/contents/content-list-cell.directive.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/shared/components/contents/content-list-cell.directive.ts b/frontend/src/app/shared/components/contents/content-list-cell.directive.ts index b75f76abe..b8404d696 100644 --- a/frontend/src/app/shared/components/contents/content-list-cell.directive.ts +++ b/frontend/src/app/shared/components/contents/content-list-cell.directive.ts @@ -7,7 +7,7 @@ import { Directive, ElementRef, Input, OnChanges, OnDestroy, OnInit, Pipe, PipeTransform, Renderer2 } from '@angular/core'; import { ResourceOwner } from '@app/framework'; -import { ContentDto, FieldSizes, MetaFields, RootFieldDto, TableField, TableSettings, Types } from '@app/shared/internal'; +import { ContentDto, FieldSizes, MetaFields, TableField, TableSettings } from '@app/shared/internal'; export function getCellWidth(field: TableField, sizes: FieldSizes | undefined | null) { const size = sizes?.[field.name] || 0; @@ -184,7 +184,7 @@ export class ContentListCellResizeDirective implements OnInit, OnDestroy { @Input() public set field(value: TableField) { - this.fieldName = Types.is(value, RootFieldDto) ? value.name : undefined; + this.fieldName = value.rootField?.name; } @Input('fields')