We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34f1ae1 commit 23ba409Copy full SHA for 23ba409
src/app/configuration/mydata/mydata.component.ts
@@ -26,11 +26,13 @@ export class MyDataComponent implements OnInit {
26
this.assetGroups = [];
27
if (this.myData.IsProjectData) {
28
const glob = this.dataService.Project.GetProjectAssetGroup();
29
- let g: IKeyValue = {
30
- Key: glob.Name,
31
- Value: [glob, ...glob.GetGroupsFlat()]
+ if (glob) {
+ const g: IKeyValue = {
+ Key: glob.Name,
32
+ Value: [glob, ...glob.GetGroupsFlat()]
33
+ }
34
+ this.assetGroups.push(g);
35
}
- this.assetGroups.push(g);
36
this.dataService.Project.GetDevices().filter(x => x.AssetGroup).forEach(dev => {
37
let g: IKeyValue = {
38
Key: dev.Name,
0 commit comments