diff --git a/ui/src/Components/SilenceModal/SilenceMatch/LabelValueInput.tsx b/ui/src/Components/SilenceModal/SilenceMatch/LabelValueInput.tsx index bca1f1bda..90b24e2a0 100644 --- a/ui/src/Components/SilenceModal/SilenceMatch/LabelValueInput.tsx +++ b/ui/src/Components/SilenceModal/SilenceMatch/LabelValueInput.tsx @@ -31,7 +31,7 @@ const GenerateHashFromMatchers = ( }, }); -const Placeholder: FC> = (props) => { +const Placeholder: FC> = (props) => { return (
@@ -39,7 +39,7 @@ const Placeholder: FC> = (props) => { ); }; -interface ValueContainerPropsT extends ValueContainerProps { +interface ValueContainerPropsT extends ValueContainerProps { selectProps: { silenceFormStore: SilenceFormStore; matcher: MatcherWithIDT; @@ -51,7 +51,7 @@ const ValueContainer: FC = ({ selectProps, ...props }) => ( - )}> + )}> {selectProps.matcher.values.length > 0 ? ( >, + ValueContainer: ValueContainer as FC< + ValueContainerProps + >, Placeholder: Placeholder, }} silenceFormStore={silenceFormStore}