diff --git a/addons/api/mirage/factories/host-set.js b/addons/api/mirage/factories/host-set.js index d4372bef5..4bb6ad7bb 100644 --- a/addons/api/mirage/factories/host-set.js +++ b/addons/api/mirage/factories/host-set.js @@ -13,9 +13,7 @@ export default factory.extend({ ], id: (i) => `host-set-id-${i}`, type() { - if (this.hostCatalog) { - return this.hostCatalog.type; - } + return this.hostCatalog?.type || factory.attrs.type; }, plugin() { if (this.type === 'plugin') {