From bcf39dc2cf9efa1ab7d270eb68d097cf78cfb6db Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 5 Mar 2018 12:50:25 +0200 Subject: [PATCH] fix: discriminator dropdown showing incorrect field if sorted --- src/components/Schema/DiscriminatorDropdown.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/Schema/DiscriminatorDropdown.tsx b/src/components/Schema/DiscriminatorDropdown.tsx index 5301de8955..e2443e7cd4 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 ( - + ); }