Skip to content

Commit

Permalink
resolveIds
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajaa-BARHTAOUI committed Mar 16, 2023
1 parent a12a744 commit 5bb1789
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/xo-web/src/xo-app/vm-import/utils.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as CM from 'complex-matcher'
import { resolveIds } from 'utils'

export const getRedirectionUrl = (vms = []) => {
const vmIds = typeof vms === 'object' ? Object.values(vms) : vms
const vmIds = resolveIds(typeof vms === 'object' ? Object.values(vms) : vms)
return vmIds.length === 0
? undefined // no redirect
: vmIds.length === 1
Expand Down

0 comments on commit 5bb1789

Please sign in to comment.