From e32f22a387a0b0bdc503681f7a2dd4ea46bba818 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 11 Oct 2024 15:16:21 +0200 Subject: [PATCH] Add check to avoid empty lines --- src/app.js | 1 - src/modules/store.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 56c03b9..605db4b 100644 --- a/src/app.js +++ b/src/app.js @@ -104,7 +104,6 @@ class AppBase extends HTMLElement { - diff --git a/src/modules/store.js b/src/modules/store.js index 2cffa98..871c6e1 100644 --- a/src/modules/store.js +++ b/src/modules/store.js @@ -43,6 +43,7 @@ export default class Store { switch (event.type) { case this.constructor.actions.ADD_LINE: + if (!this.state.input) break; this.state = { ...this.state, records: this.state.records.concat({