Simplify conditional
This commit is contained in:
1 parent
1cdc4a0092
commit
fe3310ddd1
1 file changed
+1
-4
@@ -51,10 +51,7 @@ export default factory.extend({
|
||||
ip_addresses: returnIpAddressesArray(),
|
||||
external_id: datatype.uuid(),
|
||||
// Only aws plugins have dns_names
|
||||
dns_names:
|
||||
this.type != 'static' && this.plugin?.name === 'aws'
|
||||
? returnDnsNames()
|
||||
: undefined,
|
||||
dns_names: this.plugin?.name === 'aws' ? returnDnsNames() : undefined,
|
||||
};
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user