Skip to content

Commit 4a81227

Browse files
committed
Revert = undefined because createSummaryDOM uses for-in.
1 parent de4b473 commit 4a81227

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ export class ValidationService {
640640
}
641641
}
642642

643-
this.summary[uid] = undefined;
643+
delete this.summary[uid];
644644
}
645645
this.renderSummary();
646646
});
@@ -784,7 +784,7 @@ export class ValidationService {
784784
input.classList.add('input-validation-valid');
785785

786786
let uid = this.getElementUID(input);
787-
this.summary[uid] = undefined;
787+
delete this.summary[uid];
788788
this.renderSummary();
789789
}
790790

0 commit comments

Comments
 (0)