mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
give default valeu for uploadImage opt (#308)
Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user