Skip to content

Commit

Permalink
Fix conditional rendering of runtime dropdown (microsoft#7228)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Whitten <[email protected]>
  • Loading branch information
pavolum and cwhitten authored Apr 21, 2021
1 parent 1c712b4 commit eff56fa
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,7 @@ const DefineConversationV2: React.FC<DefineConversationProps> = (props) => {
);
}, [focusedStorageFolder]);
const dialogCopy = isImported ? DialogCreationCopy.IMPORT_BOT_PROJECT : DialogCreationCopy.DEFINE_BOT_PROJECT;

return (
// TODO remove runtime language drop down prior to merging as that data is indicated by the tab chosen
<Fragment>
<DialogWrapper isOpen {...dialogCopy} dialogType={DialogTypes.CreateFlow} onDismiss={onDismiss}>
<form onSubmit={handleSubmit}>
Expand All @@ -359,7 +357,6 @@ const DefineConversationV2: React.FC<DefineConversationProps> = (props) => {
</StackItem>
<StackItem grow={0} styles={halfstack}>
<TextField
multiline
label={formatMessage('Description')}
resizable={false}
styles={description}
Expand All @@ -368,7 +365,7 @@ const DefineConversationV2: React.FC<DefineConversationProps> = (props) => {
/>
</StackItem>
</Stack>
{!isImported ?? (
{!isImported && (
<Stack horizontal styles={stackinput} tokens={{ childrenGap: '2rem' }}>
<StackItem grow={0} styles={halfstack}>
<Dropdown
Expand Down

0 comments on commit eff56fa

Please sign in to comment.