Skip to content

Commit

Permalink
Merge pull request #1647 from ORNL-AMO/issue-1646
Browse files Browse the repository at this point in the history
fix upload meter without source bug
  • Loading branch information
rmroot authored Jul 18, 2024
2 parents 9f7c9e1 + 180e8e0 commit efd54e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/upload-data/upload-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export class UploadDataService {
//we can still access the data using this value
newMeter.importWizardName = groupItem.value;
//start with random meter number
newMeter.meterNumber = selectedFacility.name.replace(' ', '_') + '_' + newMeter.source.replace(' ', '_') + '_' + Math.random().toString(36).substr(2, 3);
newMeter.meterNumber = selectedFacility.name.replace(' ', '_') + '_' + newMeter.source?.replace(' ', '_') + '_' + Math.random().toString(36).substr(2, 3);

//set emissions mulitpliers
newMeter = this.editMeterFormService.setMultipliers(newMeter);
Expand Down

0 comments on commit efd54e7

Please sign in to comment.