Skip to content

Commit

Permalink
check undefined alias
Browse files Browse the repository at this point in the history
  • Loading branch information
robertMileaNi committed Oct 1, 2024
1 parent acefd95 commit 40756ca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const fakeSystems: SystemMetadata[] = [
},
{
id: 'Location2',
alias: 'Cool system 😎',
alias: undefined,
state: 'DISCONNECTED',
workspace: '2',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ export class AssetCalibrationDataSource extends DataSourceBase<AssetCalibrationQ

createColumnNameFromDescriptor(field: FieldDTOWithDescriptor): string {
return field.columnDescriptors.map(descriptor => {
console.log(this.state.systems)
if (descriptor.type === ColumnDescriptorType.MinionId && this.state.systems) {
const system = this.state.systems.find(system => system.id === descriptor.value);
console.log(system)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ exports[`queries calibration forecast with location groupBy 1`] = `
"name": "Group",
"values": [
"my system",
"Cool system 😎",
"Location2",
"Location3",
],
},
Expand Down

0 comments on commit 40756ca

Please sign in to comment.