|
@@ -982,7 +982,7 @@
|
|
|
|
|
|
const params:any = {lines: lines, templateId: this.currentTemplate.id};
|
|
|
const sel = this.editor.getSelComp();
|
|
|
- if(sel.compType == 'mainPipe')
|
|
|
+ if(sel && sel.compType == 'mainPipe')
|
|
|
params.currentCompId = sel.id;
|
|
|
this.callAction('drawMainPipe', params);
|
|
|
}
|