We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a40fab commit 998dd27Copy full SHA for 998dd27
src/ui.js
@@ -586,9 +586,10 @@ class OneOfTopLevel extends React.Component {
586
}
587
588
getOptions = () => {
589
- return this.props.args.schema[this.schemaName].map((option, index) => {
590
- return {label: option.title || 'Option ' + (index + 1), value: index};
591
- });
+ return Array.from(
+ this.props.args.schema[this.schemaName].keys(),
+ (index) => ({label: this.getSchema(index).title || 'Option ' + (index + 1), value: index})
592
+ );
593
594
595
getSchema = (index) => {
0 commit comments