mod-build 3.6.41-beta.3 → 3.6.41-beta.4

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.
@@ -172,12 +172,14 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
172
172
  return steps;
173
173
  }
174
174
  steps.items.forEach(item => {
175
- item.fields = item.fields.map(field => {
176
- if (field.name && defaultConfig[field.name]) {
177
- field = Object.assign(defaultConfig[field.name], field);
178
- }
179
- return field;
180
- });
175
+ if (item.fields) {
176
+ item.fields = item.fields.map(field => {
177
+ if (field.name && defaultConfig[field.name]) {
178
+ field = Object.assign(defaultConfig[field.name], field);
179
+ }
180
+ return field;
181
+ });
182
+ }
181
183
  });
182
184
 
183
185
  return steps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.41-beta.3",
3
+ "version": "3.6.41-beta.4",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",