From 21968ab86d218832122a320a079757a748c82271 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 28 Sep 2020 20:20:19 +0200 Subject: [PATCH] Don't create a label through quick add if the title is empty --- src/views/list/views/List.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/list/views/List.vue b/src/views/list/views/List.vue index 51ea7ecac..8d06ec85a 100644 --- a/src/views/list/views/List.vue +++ b/src/views/list/views/List.vue @@ -262,6 +262,11 @@ export default { // The part up until the next space const labelTitle = p.split(' ')[0] + // Don't create an empty label + if (labelTitle === '') { + return + } + // Check if the label exists this.labelService.getAll({}, {s: labelTitle}) .then(res => {