Skip to content

Commit 7bb7989

Browse files
committed
Improve stories
1 parent 8594144 commit 7bb7989

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

packages/ra-core/src/controller/input/ArrayInputBase.stories.tsx

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,23 @@ export default { title: 'ra-core/controller/input/ArrayInputBase' };
1818
export const Basic = () => (
1919
<TestMemoryRouter initialEntries={['/posts/1']}>
2020
<Admin
21-
dataProvider={fakeRestDataProvider({
22-
posts: [
23-
{
24-
id: 1,
25-
title: 'Post 1',
26-
tags: [
27-
{ name: 'Tag 1', color: 'red' },
28-
{ name: 'Tag 2', color: 'blue' },
29-
],
30-
},
31-
{ id: 2, title: 'Post 2' },
32-
],
33-
})}
21+
dataProvider={fakeRestDataProvider(
22+
{
23+
posts: [
24+
{
25+
id: 1,
26+
title: 'Post 1',
27+
tags: [
28+
{ name: 'Tag 1', color: 'red' },
29+
{ name: 'Tag 2', color: 'blue' },
30+
],
31+
},
32+
{ id: 2, title: 'Post 2', tags: [] },
33+
],
34+
},
35+
process.env.NODE_ENV !== 'test',
36+
process.env.NODE_ENV !== 'test' ? 300 : 0
37+
)}
3438
>
3539
<Resource
3640
name="posts"

0 commit comments

Comments
 (0)