Skip to content

Commit

Permalink
Fix results count being undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishal committed Jul 23, 2024
1 parent e1a818c commit ce92493
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {

getResultsText() {
const recordsCount = this.readOnlyMode ? this.rowData?.data.length : this.referenceList?.length;
return `${recordsCount} result${recordsCount > 1 ? 's' : ''}`;
return `${recordsCount || 0} result${recordsCount > 1 ? 's' : ''}`;
}

sortCompare(a, b): number {
Expand Down

0 comments on commit ce92493

Please sign in to comment.