fix: get sourceSchedule exception

Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
Yi-Ya Chen 2025-01-21 14:14:56 +08:00
parent 1c15ed8003
commit 12cadbf667
No known key found for this signature in database
GPG Key ID: 9A2E6FBD33F68EDE

View File

@ -132,7 +132,7 @@ export default class HciVmBackup extends HarvesterResource {
} }
get sourceSchedule() { get sourceSchedule() {
return this.metadata?.annotations[HCI_ANNOTATIONS.SVM_BACKUP_ID]; return this.metadata?.annotations?.[HCI_ANNOTATIONS.SVM_BACKUP_ID];
} }
get attachVM() { get attachVM() {