Skip to content

Commit

Permalink
Fix for #1452
Browse files Browse the repository at this point in the history
Missing MessageRow "No records found" after call forceRender and where data is empty (tbody is empty).

When calling render the data load ends with "Rendered" status
When calling forceRender the data load ends with "Loaded" status instead of "Rendered"

This are two scenarios which we may want to show "No records found", so is added as a valid status to show the MessageRow and now it shows correctly with render and forceRender
  • Loading branch information
CarlosEGuerraSilva committed Oct 14, 2024
1 parent 9a6a53e commit 10300c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view/table/tbody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function TBody() {
/>
)}

{status === Status.Rendered && data && data.length === 0 && (
{(status === Status.Rendered || status === Status.Loaded) && data && data.length === 0 && (
<MessageRow
message={_('noRecordsFound')}
colSpan={headerLength()}
Expand Down

0 comments on commit 10300c4

Please sign in to comment.