diff --git a/src/components/Template/DefaultSelectList.jsx b/src/components/Template/DefaultSelectList.jsx index ef104dd..abff148 100644 --- a/src/components/Template/DefaultSelectList.jsx +++ b/src/components/Template/DefaultSelectList.jsx @@ -36,6 +36,7 @@ export function DefaultSelectList({ const labelWithFallback = label || capitalizeFirstLetter(name); const idWithFallback = id || name; const helperTextId = `${idWithFallback}-helper-text`; + const hasHelperText = !!helperText?.length; return ( @@ -52,7 +53,7 @@ export function DefaultSelectList({ label={labelWithFallback} input={} endAdornment={ - helperText?.length && ( + hasHelperText && ( ) } + sx={{ + "& .MuiSelect-icon": hasHelperText && { + marginRight: 5 + } + }} > {options.map((option) => ( ))} - {helperText?.length && ( + {hasHelperText && ( {helperText}