fix: remove unused domain variable in BannerBuilder

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-25 10:38:52 +02:00
parent 34ec818ad3
commit 461667c506
@@ -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[]