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

(cherry picked from commit 9e015ec3b12eb2f3abe78238cc1eef6e99932592)

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
parent 3c464e9d10
commit 635254afdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = '';