Skip to content

Commit

Permalink
Federation zone count fixed (#1218)
Browse files Browse the repository at this point in the history
* federation zone count fixed
  • Loading branch information
rahuldsce authored Feb 28, 2022
1 parent 58a2769 commit cd7a5f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/main/federation/reg/Fedaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class RegisterPartner extends React.Component {
{ field: fields.partnerCountryCode, selectField: fields.countryCode, label: 'Partner Country Code', formType: SELECT, placeholder: 'Select Partner Country Code', rules: { required: true }, visible: true, update: { key: true }, tip: 'Country where operator platform is located' },
{ field: fields.partnerFederationId, label: 'Partner Federation ID', formType: INPUT, placeholder: 'Enter Partner Federation ID', visible: true, rules: { required: true }, tip: 'Globally unique string used to indentify a federation with partner federation' },
{ field: fields.partnerFederationAddr, label: 'Partner Federation Addr', formType: INPUT, placeholder: 'Enter Partner Federation Addr', rules: { required: true }, visible: true, tip: 'Globally unique string used to indentify a federation with partner federation' },
{ field: fields.partnerAPIKey, label: 'Partner API Key', formType: INPUT, placeholder: 'Enter Partner API Key', rules: { required: true }, visible: true, tip: 'API Key used for authentication (stored in secure storage)' },
{ field: fields.partnerAPIKey, label: 'Partner API Key', formType: INPUT, placeholder: 'Enter Partner API Key', rules: { required: true, type:'password' }, visible: true, tip: 'API Key used for authentication (stored in secure storage)' },
{ field: fields.partnerFederationName, label: 'Federation Name', formType: INPUT, placeholder: 'Enter Partner Federation Name', rules: { required: true }, visible: true, tip: 'Name to uniquely identify a federation' }
]
}
Expand Down
4 changes: 2 additions & 2 deletions src/services/modules/federation/federation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import * as formatter from '../../model/format'
import { authSyncRequest, responseValid } from '../../service';
import { endpoint, perpetual } from '../../../helper/constant'
import { redux_org } from '../../../helper/reduxData'
import { operatorRoles } from '../../../constant';
import { unionBy } from 'lodash';

let fields = formatter.fields
Expand Down Expand Up @@ -69,6 +68,7 @@ export const multiDataRequest = (keys, mcList) => {
zoneList = data
}
}

if (federatorList && federatorList.length > 0) {
for (let federator of federatorList) {
for (let federation of federationList) {
Expand All @@ -85,7 +85,7 @@ export const multiDataRequest = (keys, mcList) => {
}
federator[fields.zones] = []
for (let zone of zoneList) {
if (federator[fields.partnerFederationName] === zone[fields.partnerFederationName] && federator[fields.operatorName] === zone[fields.operatorName] && federator[fields.partnerOperatorName] === zone[fields.partnerOperatorName]) {
if (federator[fields.partnerFederationName] === zone[fields.partnerFederationName] && federator[fields.operatorName] === zone[fields.operatorName]) {
federator[fields.zones].push({ ...zone, registered: zone[fields.registered] ? perpetual.YES : perpetual.NO })
}
}
Expand Down

0 comments on commit cd7a5f2

Please sign in to comment.