Bläddra i källkod

Fix bug when an option has a 0 value

Popov72 5 år sedan
förälder
incheckning
58e0432efb
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      inspector/src/components/actionTabs/lines/optionsLineComponent.tsx

+ 1 - 1
inspector/src/components/actionTabs/lines/optionsLineComponent.tsx

@@ -79,7 +79,7 @@ export class OptionsLineComponent extends React.Component<IOptionsLineComponentP
 
                 </div>
                 <div className="options">
-                    <select onChange={evt => this.updateValue(evt.target.value)} value={this.state.value || ""}>
+                    <select onChange={evt => this.updateValue(evt.target.value)} value={this.state.value ?? ""}>
                         {
                             this.props.options.map(option => {
                                 return (