Skip to content

Commit fd22f7d

Browse files
mnlkrsalanpoulain
authored andcommitted
[ADMIN] Add missing code in example (#695)
1 parent 48dff00 commit fd22f7d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

admin/getting-started.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ const myApiDocumentationParser = entrypoint => parseHydraDocumentation(entrypoin
8383
const books = api.resources.find(({ name }) => 'books' === name);
8484
const description = books.fields.find(f => 'description' === f.name);
8585
86+
description.field = props => (
87+
<RichTextField {...props} source="description" />
88+
);
89+
8690
description.input = props => (
8791
<RichTextInput {...props} source="description" />
8892
);

0 commit comments

Comments
 (0)