diff --git a/lib/cell.js b/lib/cell.js index f3b788c56570567ac087ffbe0e8f6ec144bc42e8..e1712b2ec584e0f7e0fe2a00e930934f090cb183 100644 --- a/lib/cell.js +++ b/lib/cell.js @@ -61,9 +61,10 @@ class Cell extends EventEmitter { this.emit("changed", this) } - if (this.draftState.length === 1) { - console.debug(`Cell ${this.id}: Set value to ${this.draftState[0]} because it's the only left draft value.`) - this.value = this.draftState[0]; + if (this.draftState.length === 1) { + console.debug(`Cell ${this.id}: Set value to ${this.draftState[0]} because it's the only left draft value.`) + this.value = this.draftState[0]; + } } }