fix(product, dashboard): manual cleanup of uploaded images (#10254)
* manual cleanup * add changeset * remove thumbnail on deletion
This commit is contained in:
committed by
GitHub
parent
df8369028e
commit
c28d0db164
@@ -132,8 +132,8 @@ export const EditProductMediaForm = ({ product }: ProductMediaViewProps) => {
|
||||
|
||||
await mutateAsync(
|
||||
{
|
||||
images: withUpdatedUrls.map((file) => ({ url: file.url })),
|
||||
thumbnail: thumbnail,
|
||||
images: withUpdatedUrls.map((file) => ({ url: file.url, id: file.id })),
|
||||
thumbnail: thumbnail || null,
|
||||
},
|
||||
{
|
||||
onSuccess: () => {
|
||||
|
||||
Reference in New Issue
Block a user