Fix for #50792: empty pre post scripts not rendered properly

This commit is contained in:
Erich Gamma 2018-05-30 17:30:47 +02:00
parent c717348063
commit 8b9b0d3582

View file

@ -58,7 +58,7 @@ function getPrePostScripts(scripts: any): Set<string> {
const script = keys[i];
const prepost = ['pre' + script, 'post' + script];
prepost.forEach(each => {
if (scripts[each]) {
if (scripts[each] !== undefined) {
prePostScripts.add(each);
}
});