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