mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-27 22:24:14 +00:00
fix: can't remove custom images
This commit is contained in:
parent
c24cc3dc01
commit
ed9a480385
2 changed files with 8 additions and 6 deletions
|
|
@ -87,10 +87,9 @@ export default function EditMiiPage() {
|
|||
formData.append("instructions", JSON.stringify(instructions.current));
|
||||
|
||||
if (hasCustomImagesChanged.current) {
|
||||
files.forEach((file, index) => {
|
||||
// image1, image2, etc.
|
||||
formData.append(`image${index + 1}`, file);
|
||||
});
|
||||
// image1, image2, etc.
|
||||
files.forEach((file, index) => formData.append(`image${index + 1}`, file));
|
||||
if (files.length === 0) formData.append("clearImages", "true");
|
||||
}
|
||||
|
||||
// Switch pictures
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue