main image set
This commit is contained in:
@@ -282,6 +282,11 @@ export class ProductEditComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
});
|
||||
|
||||
if (mainImagePreview && !this.newImageFiles.has(mainImagePreview.identifier)) {
|
||||
console.log('Setze bestehendes Bild als Main:', mainImagePreview.identifier);
|
||||
formData.append('SetMainImageId', mainImagePreview.identifier);
|
||||
}
|
||||
|
||||
return formData;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user