Skip to content

Commit

Permalink
Fix results count being undefined (#192)
Browse files Browse the repository at this point in the history
Co-authored-by: Vishal <[email protected]>
  • Loading branch information
vishalshrm539 and Vishal authored Jul 23, 2024
1 parent e1a818c commit 1aae203
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 1aae203

Please sign in to comment.