Skip to content

Commit ed0f0df

Browse files
committed
Fix SingleFieldList story
1 parent 68d00a7 commit ed0f0df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/ra-ui-materialui/src/list/SingleFieldList.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export const Loading = () => (
128128
);
129129

130130
export const Offline = () => (
131-
<Wrapper listContext={{ isPaused: true }}>
131+
<Wrapper listContext={{ isPaused: true, data: null, total: null }}>
132132
<SingleFieldList />
133133
</Wrapper>
134134
);

packages/ra-ui-materialui/src/list/SingleFieldList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const SingleFieldList = (inProps: SingleFieldListProps) => {
9090

9191
return null;
9292
}
93-
if (isPaused && (isPlaceholderData || data == null)) {
93+
if (isPaused && (isPlaceholderData || total == null)) {
9494
if (offline) {
9595
return offline;
9696
}

0 commit comments

Comments
 (0)