Skip to content

Commit 178e9b2

Browse files
author
David Haeffner
committed
Fixed bug in progress bar that was preventing it from updating
1 parent 1243e92 commit 178e9b2

File tree

1 file changed

+9
-14
lines changed
  • packages/selenium-ide/src/neo/components/Runs

1 file changed

+9
-14
lines changed

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

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,18 @@ export default class Runs extends React.Component {
3434
runs: 0,
3535
failures: 0,
3636
}
37-
Progress() {
38-
if (PlaybackState.isSilent) {
39-
;<Progress hasError={this.props.hasError} />
40-
} else {
41-
return (
42-
<Progress
43-
hasError={this.props.hasError}
44-
progress={this.props.progress}
45-
totalProgress={this.props.totalProgress}
46-
/>
47-
)
48-
}
49-
}
5037
render() {
5138
return (
5239
<div className="runs">
53-
<Progress />
40+
{!PlaybackState.isSilent ? (
41+
<Progress
42+
hasError={this.props.hasError}
43+
progress={this.props.progress}
44+
totalProgress={this.props.totalProgress}
45+
/>
46+
) : (
47+
<Progress hasError={false} />
48+
)}
5449
<div className="status">
5550
<span>Runs: {PlaybackState.isSilent ? 0 : this.props.runs}</span>
5651
<span>

0 commit comments

Comments
 (0)