mod-build 3.6.50 → 3.6.52

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,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.52
4
+
5
+ - Added `templatesData.primary_trade` conditional to the `fetchTcpaFromSitegenie()` function so it won't try to run on quote/home-remodel
6
+
7
+
3
8
  ## 3.6.50
4
9
 
5
10
  - Added functionality in `templates.js` to grab the tcpa from sitegenie at build time
@@ -246,7 +246,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
246
246
  await getDefaultFormFieldConfig();
247
247
  }
248
248
 
249
- if (!templatesData.tcpaText) {
249
+ if (!templatesData.tcpaText && templatesData.primary_trade) {
250
250
  await fetchTcpaFromSitegenie();
251
251
  }
252
252
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.50",
3
+ "version": "3.6.52",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",