Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danyill committed Dec 18, 2024
1 parent 1664f2b commit a4e947a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion plugins/oscd-stencil/oscd-stencil.js
Original file line number Diff line number Diff line change
Expand Up @@ -15200,7 +15200,10 @@ function findSELMessageQuality(control, toIedName) {
function getFCDA(cb, extRef) {
const dsName = cb.getAttribute('datSet');
const ds = cb.closest('LN0').querySelector(`DataSet[name="${dsName}"]`);
return Array.from(ds.querySelectorAll('FCDA')).find((fcda) => matchDataAttributes(extRef, fcda));
const fcdas = ds === null || ds === void 0 ? void 0 : ds.querySelectorAll('FCDA');
if (!fcdas)
return undefined;
return Array.from(fcdas).find((fcda) => matchDataAttributes(extRef, fcda));
}
function findSupervision(cb, ied) {
var _a, _b;
Expand Down
2 changes: 1 addition & 1 deletion plugins/oscd-stencil/oscd-stencil.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit a4e947a

Please sign in to comment.