Skip to content

Commit 3fdecee

Browse files
authored
Merge pull request #306 from Jongkeun/add-targets-validation
add check against targets being undefined
2 parents e82d3fe + 0438e2b commit 3fdecee

File tree

1 file changed

+1
-1
lines changed
  • packages/selenium-ide/src/neo/components/CommandForm

1 file changed

+1
-1
lines changed

packages/selenium-ide/src/neo/components/CommandForm/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ import "./style.css";
6767
name="target"
6868
label="Target"
6969
value={this.props.command ? this.props.command.target : ""}
70-
targets={this.props.command.targets}
70+
targets={this.props.command ? this.props.command.targets : []}
7171
disabled={!this.props.command}
7272
onChange={this.props.command ? this.props.command.setTarget : null} />
7373
<FlatButton

0 commit comments

Comments
 (0)