Skip to content

Commit 72182b6

Browse files
author
Hoang Nguyen
authored
ui: fix error jobid not found & console error when using filter (#5323)
Fixes #5322
1 parent 873dc54 commit 72182b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/src/views/compute/MigrateWizard.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
v-else />
4747
</div>
4848
<div slot="memused" slot-scope="record">
49-
<span v-if="record.memoryused | byteToGigabyte">
49+
<span v-if="record.memoryused">
5050
{{ record.memoryused | byteToGigabyte }} GB
5151
</span>
5252
</div>
@@ -197,7 +197,9 @@ export default {
197197
var migrateParams = this.selectedHost.id === -1 ? { autoselect: true, virtualmachineid: this.resource.id }
198198
: { hostid: this.selectedHost.id, virtualmachineid: this.resource.id }
199199
api(migrateApi, migrateParams).then(response => {
200-
const jobid = this.selectedHost.requiresStorageMotion ? response.migratevirtualmachinewithvolumeresponse.jobid : response.migratevirtualmachineresponse.jobid
200+
const jobid = isUserVm
201+
? this.selectedHost.requiresStorageMotion ? response.migratevirtualmachinewithvolumeresponse.jobid : response.migratevirtualmachineresponse.jobid
202+
: response.migratesystemvmresponse.jobid
201203
this.$pollJob({
202204
jobId: jobid,
203205
title: `${this.$t('label.migrating')} ${this.resource.name}`,

0 commit comments

Comments
 (0)