Fix bug in automation editor when no conditions

This commit is contained in:
Paulus Schoutsen
2017-08-12 14:52:27 -07:00
parent a51b9c1eb5
commit 823a699670
+1 -1
View File
@@ -91,7 +91,7 @@ export default class Automation extends Component {
Learn more about conditions.
</a></p>
</span>
<Condition condition={condition} onChange={this.conditionChanged} />
<Condition condition={condition || []} onChange={this.conditionChanged} />
</ha-config-section>
<ha-config-section is-wide={isWide}>