Skip to content
Snippets Groups Projects
Commit 739c4580 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

No need for whitespace if placeholder is the only option

parent 7fb51c3e
No related branches found
No related tags found
No related merge requests found
......@@ -83,10 +83,11 @@
if (/_|\*|\|/.test(q)) {
search = 2
}
this.items.splice(0,1, {q: q, match: q, label: q+" ", time: time, search: search})
this.items.splice(0,1, {q: q, match: q, label: q, time: time, search: search})
}
}
else {
// Whitespace necessary in case option already exists in dropdown
this.items.push({q: q, match: q, label: q+" ", time: time, search: search})
}
let self = this
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment