diff options
Diffstat (limited to 'src/components/ui')
-rw-r--r-- | src/components/ui/Select.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/ui/Select.tsx b/src/components/ui/Select.tsx index 1d69a9acf..e8e305fdd 100644 --- a/src/components/ui/Select.tsx +++ b/src/components/ui/Select.tsx | |||
@@ -4,6 +4,7 @@ import { | |||
4 | ReactElement, | 4 | ReactElement, |
5 | RefObject, | 5 | RefObject, |
6 | ChangeEvent, | 6 | ChangeEvent, |
7 | ReactNode, | ||
7 | } from 'react'; | 8 | } from 'react'; |
8 | import { observer } from 'mobx-react'; | 9 | import { observer } from 'mobx-react'; |
9 | import classnames from 'classnames'; | 10 | import classnames from 'classnames'; |
@@ -103,7 +104,9 @@ class Select extends Component<IProps> { | |||
103 | </option> | 104 | </option> |
104 | ))} | 105 | ))} |
105 | </select> | 106 | </select> |
106 | {field.error && <div className="franz-form__error">{field.error}</div>} | 107 | {field.error && ( |
108 | <div className="franz-form__error">{field.error as ReactNode}</div> | ||
109 | )} | ||
107 | </div> | 110 | </div> |
108 | ); | 111 | ); |
109 | } | 112 | } |