mirror of
https://github.com/osmarks/meme-search-engine.git
synced 2025-06-23 00:34:06 +00:00
I really should do better testing
This commit is contained in:
parent
c235217751
commit
2c9ce67ab2
@ -120,8 +120,8 @@
|
|||||||
let queryTerms = []
|
let queryTerms = []
|
||||||
|
|
||||||
const focusEl = el => el.focus()
|
const focusEl = el => el.focus()
|
||||||
const newTextQuery = (content="") => {
|
const newTextQuery = (content=null) => {
|
||||||
queryTerms.push({ type: "text", weight: 1, sign: "+", text: content })
|
queryTerms.push({ type: "text", weight: 1, sign: "+", text: typeof content === "string" ? content : "" })
|
||||||
queryTerms = queryTerms
|
queryTerms = queryTerms
|
||||||
}
|
}
|
||||||
const removeTerm = term => {
|
const removeTerm = term => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user