abinazebinoy commited on
Commit
19b580c
·
1 Parent(s): a4a025f

fix(DUP-1): remove duplicate search input prefill block -- same code appeared twice with different variable names

Browse files
Files changed (1) hide show
  1. frontend/js/app.js +0 -4
frontend/js/app.js CHANGED
@@ -314,10 +314,6 @@ const Views = {
314
  const _searchInput = document.getElementById("search-input");
315
  if (_searchInput && query) _searchInput.value = query;
316
 
317
- // C-01 FIX: pre-fill search input with current query
318
- // Users could not see what they searched and could not edit it
319
- const _si = document.getElementById("search-input");
320
- if (_si && query) _si.value = query;
321
 
322
  document.getElementById("search-btn").addEventListener("click", () => {
323
  const q = document.getElementById("search-input").value.trim();
 
314
  const _searchInput = document.getElementById("search-input");
315
  if (_searchInput && query) _searchInput.value = query;
316
 
 
 
 
 
317
 
318
  document.getElementById("search-btn").addEventListener("click", () => {
319
  const q = document.getElementById("search-input").value.trim();