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

(cherry picked from commit fe32b4372b)

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
co-authored by Andy Lee
parent fd52218350
commit 01e3867da1
@@ -305,7 +305,7 @@ export default class HciVmImage extends HarvesterResource {
}
get uploadImage() {
return async(file, opt) => {
return async(file, opt = {}) => {
const formData = new FormData();
formData.append('chunk', file);