- {this.renderStartingLocationBranch()}
- {activeLocations.map((location, index) => {
- const locationId = location ? location.id : this.props.startingLocationId;
- const branchActiveLocation = activeLocations[index + 1];
- const branchActiveLocationId = branchActiveLocation ? branchActiveLocation.id : null;
- const isBranchActiveLocationLoading = branchActiveLocationId && !locationsMap[branchActiveLocationId];
- const locationData = locationsMap[locationId];
-
- return this.renderBranch(locationData, branchActiveLocationId, isBranchActiveLocationLoading);
- })}
+ {this.renderBranches()}
);