Skip to content

Commit

Permalink
Merge pull request #194 from Ontotext-AD/GDB-4946-set-empty-label
Browse files Browse the repository at this point in the history
GDB-4946 Set emty label when empty preview value
  • Loading branch information
teodossidossev authored Sep 9, 2020
2 parents 1035ffc + 7d7c07f commit f5d7402
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 f5d7402

Please sign in to comment.