Skip to content

Commit e124713

Browse files
committed
Improve code example
1 parent 1d615df commit e124713

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/List.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,8 +1192,7 @@ export const PostList = () => (
11921192
>
11931193
<WithListContext
11941194
render={context =>
1195-
context.filterValues.q == null ||
1196-
context.filterValues.q === '' ? (
1195+
context.filterValues.q?.length > 2 ? (
11971196
<CardContentInner>
11981197
Type a search term to fetch data
11991198
</CardContentInner>

0 commit comments

Comments
 (0)