diff --git a/src/components/Schema/DiscriminatorDropdown.tsx b/src/components/Schema/DiscriminatorDropdown.tsx index 73e22d5c22..b6691efa00 100644 --- a/src/components/Schema/DiscriminatorDropdown.tsx +++ b/src/components/Schema/DiscriminatorDropdown.tsx @@ -38,14 +38,12 @@ export class DiscriminatorDropdown extends React.Component<{ }; }); + const activeValue = options[parent.activeOneOf].value; + this.sortOptions(options, enumValues); return ( - + ); }