give default valeu for uploadImage opt (#308) (#319)

(cherry picked from commit fe32b4372bf917c1a08474e072c57131b7e232e6)

Signed-off-by: Andy Lee <andy.lee@suse.com>
Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
mergify[bot] 2025-05-28 12:49:06 +08:00 committed by GitHub
parent fd52218350
commit 01e3867da1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -305,7 +305,7 @@ export default class HciVmImage extends HarvesterResource {
} }
get uploadImage() { get uploadImage() {
return async(file, opt) => { return async(file, opt = {}) => {
const formData = new FormData(); const formData = new FormData();
formData.append('chunk', file); formData.append('chunk', file);