From 7d7c07ffdb67b3fdbcc042d9805fcdb23bfdfbc3 Mon Sep 17 00:00:00 2001 From: "teodossi.dossev@ontotext.com" Date: Tue, 8 Sep 2020 08:10:06 +0300 Subject: [PATCH] GDB-4946 Set emty label when empty preview value --- src/app/main/mapper/cell/cell.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/main/mapper/cell/cell.component.ts b/src/app/main/mapper/cell/cell.component.ts index f9fe296f..da953df5 100644 --- a/src/app/main/mapper/cell/cell.component.ts +++ b/src/app/main/mapper/cell/cell.component.ts @@ -161,8 +161,8 @@ export class CellComponent extends OnDestroyMixin implements OnInit { } isEmptyPreview(): boolean { - const preview = this.modelManagementService.getPreview(this.cellMapping); - return preview && preview[0] === null && preview.length === 1 || preview && preview.length === 0; + const preview = this.modelManagementService.getPreview(this.cellMapping) || []; + return preview.length === 0 || preview.length === 1 && (preview[0] === null || preview[0] === ''); } public drop($event: CdkDragDrop) {