Merge branch 'vite' of ssh://gitea.bowongai.com:222/bowong/bw-mini-app into vite

This commit is contained in:
imeepos 2025-10-04 23:17:21 +08:00
commit bcb3cfb0a8
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ export default function Create() {
alert('Template code not set');
return;
}
if (!image1 || (template?.imageCount === 2 && !image2)) {
if (template?.imageCount && !image1 || (template?.imageCount === 2 && !image2)) {
alert('Upload two images');
return;
}