fix: update storage bucket reference from shop-images to shops in Dashboard page
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user