fix(actions): correct console log formatting in updateProductWithTags function
This commit is contained in:
@@ -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.');
|
if (brand.length > 100) throw new Error('Varumärke får inte vara längre än 100 tecken.');
|
||||||
|
|
||||||
const authHeaders = await getAuthHeaders();
|
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}`, {
|
const res = await fetch(`${API_BASE}/api/products/${id}`, {
|
||||||
method: 'PATCH',
|
method: 'PATCH',
|
||||||
headers: { 'Content-Type': 'application/json', ...authHeaders },
|
headers: { 'Content-Type': 'application/json', ...authHeaders },
|
||||||
|
|||||||
Reference in New Issue
Block a user