Update web_src/js/features/comp/Cropper.ts

Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
Kerwin Bryant 2024-11-21 08:32:57 +08:00 committed by GitHub
parent e6b3a3f0d7
commit 36945d75fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ export function initCompCropper() {
let reader;
let file;
if (files && files.length > 0) {
if (files?.length > 0) {
file = files[0];
filename = file.name;
if (URL) {