Skip to content

Commit

Permalink
fix(event-state): Add default for unit
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Oct 6, 2020
1 parent d70ba6f commit 1d66aca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nodes/events-state-changed/ui-events-state-changed.js
Expand Up @@ -71,6 +71,10 @@ RED.nodes.registerType('server-state-changed', {
$('#node-input-halt_if_compare').val('is');
}

if (this.forUnits === undefined) {
$('#node-input-forUnits').val('minutes');
}

ifState.init('#node-input-haltifstate', '#node-input-halt_if_compare');

$('#node-input-for').typedInput({
Expand Down

0 comments on commit 1d66aca

Please sign in to comment.