@veloceapps/api 9.0.0-8 → 9.0.0-9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -455,27 +455,9 @@ class ConfigurationApiService {
455
455
  const portDomains = { ...lineItem.portDomains };
456
456
  // loop through ports to look for 'None' type domain computations
457
457
  for (const port of component?.ports ?? []) {
458
- const { name: portName, type: typeName, min, max, domainTypes, properties } = port;
459
- const portDomain = portDomains[portName];
460
- if (portDomain) {
461
- // there's a 'None' type domain computation
462
- if (portDomain.properties?.['domainComputation'] === ('None')) {
463
- portDomain.domainTypes = domainTypes;
464
- }
465
- }
466
- else {
467
- // there's no port domain so consider that as 'None' type domain computation
468
- portDomains[portName] = {
469
- name: portName,
470
- type: typeName,
471
- minCard: Number(min),
472
- maxCard: Number(max),
473
- domainTypes: domainTypes,
474
- properties: {
475
- ...properties,
476
- domainComputation: 'None',
477
- },
478
- };
458
+ const portDomain = portDomains[port.name];
459
+ if (portDomain?.properties?.['domainComputation'] === ('None')) {
460
+ portDomain.domainTypes = port.domainTypes;
479
461
  }
480
462
  }
481
463
  const type = runtimeModel.types.find(({ name }) => {