Merge pull request #84 from a110605/issue_7174_2

fix: resume schedule job error
This commit is contained in:
Andy Lee 2025-01-14 12:55:41 +08:00 committed by GitHub
commit 1098ef8f6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,6 +64,10 @@ export default class ScheduleVmBackup extends HarvesterResource {
} }
} }
get stateObj() {
return this?.metadata?.state || {};
}
get state() { get state() {
return this.status?.suspended === true ? STATES.suspended.label : STATES.active.label; return this.status?.suspended === true ? STATES.suspended.label : STATES.active.label;
} }