Reapply fix for #50790

This commit is contained in:
Erich Gamma 2018-06-01 09:35:11 +02:00
parent a8816968fe
commit f7f2911e2b

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);
}
});