Skip to content

Commit 10300c4

Browse files
Fix for grid-js#1452
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
1 parent 9a6a53e commit 10300c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/view/table/tbody.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function TBody() {
3737
/>
3838
)}
3939

40-
{status === Status.Rendered && data && data.length === 0 && (
40+
{(status === Status.Rendered || status === Status.Loaded) && data && data.length === 0 && (
4141
<MessageRow
4242
message={_('noRecordsFound')}
4343
colSpan={headerLength()}

0 commit comments

Comments
 (0)