mod-build 3.6.54 → 3.6.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.55
4
+ - Added conditional to check if `siteData` is empty — so our `fetchTcpaFromSitegenie()` and `getDefaultFormFieldConfig()` functions won't try to run on modify.modernize.com
5
+
3
6
  ## 3.6.54
4
7
 
5
8
  - swapping out `modUtils.getHeapCookieData()` in the old (but still used) mod-form-contractor.js
@@ -12,7 +15,6 @@
12
15
 
13
16
  - Added `templatesData.primary_trade` conditional to the `fetchTcpaFromSitegenie()` function so it won't try to run on quote/home-remodel
14
17
 
15
-
16
18
  ## 3.6.50
17
19
 
18
20
  - Added functionality in `templates.js` to grab the tcpa from sitegenie at build time
@@ -242,12 +242,14 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
242
242
  };
243
243
 
244
244
  return async function() {
245
- if (!templatesData.doNotUseDefaultFieldConfig && !templatesData.defaultConfigCompleted) {
246
- await getDefaultFormFieldConfig();
247
- }
248
-
249
- if (!templatesData.tcpaText && templatesData.primary_trade) {
250
- await fetchTcpaFromSitegenie();
245
+ if (Object.keys(siteData).length > 0) {
246
+ if (!templatesData.doNotUseDefaultFieldConfig && !templatesData.defaultConfigCompleted) {
247
+ await getDefaultFormFieldConfig();
248
+ }
249
+
250
+ if (!templatesData.tcpaText && templatesData.primary_trade) {
251
+ await fetchTcpaFromSitegenie();
252
+ }
251
253
  }
252
254
 
253
255
  return gulp.src([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.54",
3
+ "version": "3.6.55",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",