diff options
Diffstat (limited to 'src/Editor.tsx')
| -rw-r--r-- | src/Editor.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Editor.tsx b/src/Editor.tsx index 2fff5b9..b0441d7 100644 --- a/src/Editor.tsx +++ b/src/Editor.tsx @@ -35,7 +35,9 @@ const Editor = () => { An unexpected error occurred while loading examples. See console for details. </div> case "success": { - const options = examples.data.map(example => ({ value: example.content, label: example.title })) + const options = examples.data.examples.map(example => ({ + value: example.content, label: example.title, + })) const customStyles = { option: (styles: any) => ({ ...styles, |
