Skip to content

Commit 8c6932f

Browse files
committed
Fix markdown syntax error
1 parent 3a8fc7f commit 8c6932f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/TreeWithDetails.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,11 @@ You can choose to permanently filter the tree to display only a sub tree.
252252

253253
For instance, imagine you have one `employees` resource with a `department` field, and you want to display a tree for the Finance department. Use the `filter` prop to filter the tree:
254254

255+
{% raw %}
255256
```jsx
256-
export const EmployeeList = () => <TreeWithDetails filter={{ department: 'finance' }} />;
257+
const EmployeeList = () => <TreeWithDetails filter={{ department: 'finance' }} />;
257258
```
259+
{% endraw %}
258260

259261
**Note**: This only works if the filter field allows to extract a subtree with its own root node. If you use the `filter` prop to display a sparse selection of nodes (e.g. only the `male` employees), dragging nodes in this tree will not work as expected.
260262

0 commit comments

Comments
 (0)