diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-07-08 23:37:40 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-07-08 23:37:40 +0200 |
| commit | 18472645a7879baf00332a7ee5be8c4338bb8d21 (patch) | |
| tree | fc3f57803f605e4942aac010a0f7c528d0d0386c /animism-align/frontend/common/form.component.js | |
| parent | f7cf600fe1abc92ddccdbadf30315d6f9785994f (diff) | |
adding annotations of type video
Diffstat (limited to 'animism-align/frontend/common/form.component.js')
| -rw-r--r-- | animism-align/frontend/common/form.component.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/animism-align/frontend/common/form.component.js b/animism-align/frontend/common/form.component.js index 2f9162e..9a94136 100644 --- a/animism-align/frontend/common/form.component.js +++ b/animism-align/frontend/common/form.component.js @@ -114,7 +114,7 @@ export class Select extends Component { <label> {title && <span>{title}</span>} <div className={(focused ? 'select focus' : 'select') + " " + (className || "")}> - <div>{(options.find(opt => opt.name === selected) || {label: defaultOption}).label}</div> + <div>{(options.find(opt => String(opt.name) === String(selected)) || {label: defaultOption}).label}</div> <select onFocus={() => this.setState({ focused: true })} onBlur={() => this.setState({ focused: false })} |
