Skip to content

Commit

Permalink
Fix Dropdown logic for when field
Browse files Browse the repository at this point in the history
  • Loading branch information
miaawong authored Sep 12, 2024
1 parent f796bfa commit d355e07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/components/config_render/ConfigDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ const ConfigDropdown = (props) => {
setSelectedValue(val);
props.handleOnChange(props.name, val);
};
var hidden = props.hidden || props.when === "false";

return (
<ConfigWrapper
id={`${props.name}-group`}
className={`field-type-dropdown`}
marginTop={props.hidden || props.affix ? "0" : "15px"}
hidden={props.hidden}
marginTop={hidden || props.affix ? "0" : "15px"}
hidden={hidden}
>
{props.title !== "" ? (
<ConfigItemTitle
Expand Down

0 comments on commit d355e07

Please sign in to comment.