Skip to content

Commit ec83535

Browse files
slax57Aijeyomah
authored andcommitted
[no ci] [Doc] Fix <ReferenceInput enableGetChoices> example
1 parent 89d445b commit ec83535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/ReferenceInput.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ You can make the `getList()` call lazy by using the `enableGetChoices` prop. Thi
152152
<ReferenceInput
153153
source="company_id"
154154
reference="companies"
155-
enableGetChoices={({ q }) => q && q.length >= 2}
155+
enableGetChoices={({ q }) => !!(q && q.length >= 2)}
156156
/>
157157
```
158158

0 commit comments

Comments
 (0)