Skip to content

Commit

Permalink
GDB-4946 Set emty label when empty preview value
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Sep 8, 2020
1 parent 256d8de commit 7d7c07f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/main/mapper/cell/cell.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Source, any>) {
Expand Down

0 comments on commit 7d7c07f

Please sign in to comment.