Refactor type in host-set factory
This commit is contained in:
1 parent
92b4dccf78
commit
e7cf4c99a5
1 file changed
+1
-3
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user