fix: update storage bucket reference from shop-images to shops in Dashboard page

This commit is contained in:
2026-05-12 17:09:56 +01:00
parent a657308f9d
commit 8058e5835e

View File

@@ -101,13 +101,13 @@ export default function Dashboard() {
} as any);
const { data: uploadData, error: uploadError } = await supabase.storage
.from('shop-images')
.from('shops')
.upload(filePath, formData);
if (uploadError) throw uploadError;
const { data: { publicUrl } } = supabase.storage
.from('shop-images')
.from('shops')
.getPublicUrl(filePath);
if (target === 'shop') {