diff --git a/src/components/Schema/DiscriminatorDropdown.tsx b/src/components/Schema/DiscriminatorDropdown.tsx index 5301de89..e2443e7c 100644 --- a/src/components/Schema/DiscriminatorDropdown.tsx +++ b/src/components/Schema/DiscriminatorDropdown.tsx @@ -38,14 +38,11 @@ export class DiscriminatorDropdown extends React.Component<{ }; }); + const activeItem = options[parent.activeOneOf]; this.sortOptions(options, enumValues); return ( - + ); }