fix API doesn't bring checksum (#323) (#324)

(cherry picked from commit 9e015ec3b1)

Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
mergify[bot]
2025-06-03 23:16:54 +08:00
committed by GitHub
co-authored by Andy Lee
parent 3c464e9d10
commit 635254afdc
@@ -193,7 +193,7 @@ export default {
spec: { spec: {
sourceType: UPLOAD, sourceType: UPLOAD,
displayName: '', displayName: '',
checksum: '' checksum: this.imageValue?.spec?.checksum || '',
}, },
}); });
}, },
@@ -296,7 +296,7 @@ export default {
} else if (e?.code === 'ERR_CANCELED') { } else if (e?.code === 'ERR_CANCELED') {
this.errors.push(this.$store.getters['i18n/t']('harvester.setting.upgrade.cancelUpload')); this.errors.push(this.$store.getters['i18n/t']('harvester.setting.upgrade.cancelUpload'));
} else { } else {
this.errors = [e?.message] || exceptionToErrorsArray(e); this.errors = exceptionToErrorsArray(e);
} }
this.file = {}; this.file = {};
this.uploadImageId = ''; this.uploadImageId = '';