Spaces:
Runtime error
Runtime error
Update constants/js.py
Browse files- constants/js.py +1 -1
constants/js.py
CHANGED
@@ -2,7 +2,7 @@ UPDATE_SEARCH_RESULTS = f"""
|
|
2 |
function search(searchIn, maxResults = 3) {{
|
3 |
if (searchIn.trim().length > 0) {{
|
4 |
const results = [];
|
5 |
-
let titles =
|
6 |
for (const title of titles) {{ // Assuming 'titles' is an array defined elsewhere
|
7 |
if (results.length > 10) {{
|
8 |
break;
|
|
|
2 |
function search(searchIn, maxResults = 3) {{
|
3 |
if (searchIn.trim().length > 0) {{
|
4 |
const results = [];
|
5 |
+
let titles = %s;
|
6 |
for (const title of titles) {{ // Assuming 'titles' is an array defined elsewhere
|
7 |
if (results.length > 10) {{
|
8 |
break;
|