We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c457cf commit 0831fa4Copy full SHA for 0831fa4
packages/plugins/src/menu/ImportIEDs.ts
@@ -425,13 +425,13 @@ export default class ImportingIedPlugin extends LitElement {
425
426
const dataTypeTemplateActions = addDataTypeTemplates(ied, this.doc);
427
const communicationActions = addCommunicationElements(ied, this.doc);
428
- const actions = communicationActions.concat(dataTypeTemplateActions);
429
- actions.push({
+ const insertIed = {
430
new: {
431
parent: this.doc!.querySelector(':root')!,
432
element: ied,
433
},
434
- });
+ };
+ const actions = [ ...communicationActions, insertIed, ...dataTypeTemplateActions ];
435
436
this.dispatchEvent(
437
newActionEvent({
0 commit comments