1
0
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:
osmarks 2023-09-30 21:10:27 +01:00
parent c235217751
commit 2c9ce67ab2

View File

@ -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 => {