Skip to content

Commit ae26764

Browse files
authored
fix(editors/cleanup): quote input in selector of control blocks cleanup editor, closes openscd#1145
1 parent 845d1a5 commit ae26764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editors/cleanup/control-blocks-container.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export class CleanupControlBlocks extends LitElement {
290290
.forEach(cb => {
291291
const parent = cb.parentElement;
292292
const name = cb.getAttribute('datSet');
293-
const isReferenced = parent?.querySelector(`DataSet[name=${name}]`);
293+
const isReferenced = parent?.querySelector(`DataSet[name="${name}"]`);
294294
if (parent && (!name || !isReferenced)) unreferencedCBs.push(cb);
295295
});
296296
this.unreferencedControls = identitySort(unreferencedCBs);

0 commit comments

Comments
 (0)