Skip to content

Commit

Permalink
fix: resume/active scheduling job failed
Browse files Browse the repository at this point in the history
Signed-off-by: andy.lee <[email protected]>
  • Loading branch information
a110605 committed Jan 8, 2025
1 parent e4b3f84 commit 9af6365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/harvester/models/harvesterhci.io.schedulevmbackup.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class ScheduleVmBackup extends HarvesterResource {
return STATES.suspended.label;
}

return this.metadata.state.name;
return this?.metadata?.state?.name || STATES.active.label;
}

get stateDescription() {
Expand Down

0 comments on commit 9af6365

Please sign in to comment.