mirror of https://github.com/go-gitea/gitea.git
Update web_src/js/features/comp/Cropper.ts
Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
parent
e6b3a3f0d7
commit
36945d75fd
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue