fix(actions): correct console log formatting in updateProductWithTags function

This commit is contained in:
Nils-Johan Gynther
2026-04-19 18:56:44 +02:00
parent 068e8a58e5
commit b8475cdffe
+1 -1
View File
@@ -76,7 +76,7 @@ export async function updateProductWithTags(formData: FormData, tags: string[])
if (brand.length > 100) throw new Error('Varumärke får inte vara längre än 100 tecken.');
const authHeaders = await getAuthHeaders();
console.log('[actions:updateProductWithTags] auth headers present:', !!authHeaders.Authorization);\n
console.log('[actions:updateProductWithTags] auth headers present:', !!authHeaders.Authorization);
const res = await fetch(`${API_BASE}/api/products/${id}`, {
method: 'PATCH',
headers: { 'Content-Type': 'application/json', ...authHeaders },