From: Geoff Kimball Date: Tue, 29 Mar 2016 22:24:38 +0000 (-0700) Subject: In customizer Gulp tasks, prevent build from failing if the form data JSON given... X-Git-Tag: v6.2.1~30^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02711b766e7bac5ecdfdcbc26417cb3256e8e897;p=thirdparty%2Ffoundation%2Ffoundation-sites.git In customizer Gulp tasks, prevent build from failing if the form data JSON given is missing the variables key --- diff --git a/gulp/customizer.js b/gulp/customizer.js index 5a7e4d306..e033244b5 100644 --- a/gulp/customizer.js +++ b/gulp/customizer.js @@ -35,7 +35,7 @@ gulp.task('customizer:loadConfig', function(done) { CUSTOMIZER_CONFIG = yaml(data.toString()); MODULE_LIST = moduleList.modules; - VARIABLE_LIST = moduleList.variables; + VARIABLE_LIST = moduleList.variables || {}; done(); }); });