Don't create a label through quick add if the title is empty
This commit is contained in:
parent
e507bd78ef
commit
21968ab86d
1 changed files with 5 additions and 0 deletions
|
@ -262,6 +262,11 @@ export default {
|
||||||
// The part up until the next space
|
// The part up until the next space
|
||||||
const labelTitle = p.split(' ')[0]
|
const labelTitle = p.split(' ')[0]
|
||||||
|
|
||||||
|
// Don't create an empty label
|
||||||
|
if (labelTitle === '') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Check if the label exists
|
// Check if the label exists
|
||||||
this.labelService.getAll({}, {s: labelTitle})
|
this.labelService.getAll({}, {s: labelTitle})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
|
Loading…
Reference in a new issue