diff --git a/packages/xen-api/src/index.js b/packages/xen-api/src/index.js index c15463830..594a807f5 100644 --- a/packages/xen-api/src/index.js +++ b/packages/xen-api/src/index.js @@ -118,7 +118,9 @@ const OPAQUE_REF_RE = /^OpaqueRef:/ function createAutoLinks (collection, object) { forEach(object, function resolveObject (value, key, object) { if (isArray(value)) { - if (value.length || !OPAQUE_REF_RE.test(value)) { + // Do not create an array of links unless it is known this is an + // array of refs. + if (value.length && !OPAQUE_REF_RE.test(value)) { return }