fix: remove unused domain variable in BannerBuilder
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -75,8 +75,6 @@ export function BannerBuilder({ onApply, onClose }: Props) {
|
||||
const t = setTimeout(async () => {
|
||||
setLoadingSuggestions(true)
|
||||
try {
|
||||
// Recherche par titre via l'API Shopify REST
|
||||
const domain = window.location.origin
|
||||
const res = await fetch(`/api/products/search-list?q=${encodeURIComponent(q)}`)
|
||||
if (!res.ok) return
|
||||
const data = await res.json() as SearchSuggestion[]
|
||||
|
||||
Reference in New Issue
Block a user