From be07197e6d1e85a3fd3e61189a36b288751c077d Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 24 Aug 2020 12:03:44 +0300 Subject: [PATCH] fix: invalid discriminator dropdown behaviour with enum --- src/components/Schema/DiscriminatorDropdown.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 ( - + ); }