Refactor type in host-set factory

This commit is contained in:
Carlos Alcaide Corvo committed 2022-01-26 14:41:39 -08:00
1 parent 92b4dccf78
commit e7cf4c99a5
1 file changed
+1 -3
+1 -3
View File
@@ -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') {