Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Hide dropdownIcon without choice values

Krzysztof Bialoglowiczd4a334c0663a
diff --git a/saleor/static/dashboard-next/components/TextFieldWithChoice/TextFieldWithChoice.tsx b/saleor/static/dashboard-next/components/TextFieldWithChoice/TextFieldWithChoice.tsx
index cb64f9bc7d..2bf8c64083 100644
--- a/saleor/static/dashboard-next/components/TextFieldWithChoice/TextFieldWithChoice.tsx
+++ b/saleor/static/dashboard-next/components/TextFieldWithChoice/TextFieldWithChoice.tsx
@@ -78,7 +78,7 @@ const TextFieldWithChoice = withStyles(styles, {
<Typography component="span" variant="caption">
{ChoiceProps.label}
</Typography>
- <DropdownIcon />
+ {ChoiceProps.values ? <DropdownIcon /> : null}
</div>
<Popper
open={menuOpen}