nhsuk-decorated-components 0.0.4 → 0.0.5

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.
Files changed (2) hide show
  1. package/lib/decorate.js +1 -1
  2. package/package.json +1 -1
package/lib/decorate.js CHANGED
@@ -48,7 +48,7 @@ exports.decorate = function (params, keyPath, componentName) {
48
48
 
49
49
  if (params.items) {
50
50
  params.idPrefix = params.id
51
- params.items = params.items.map(item => {
51
+ params.items = params.items.filter(i => i).map(item => {
52
52
  // Ignore dividers or empty items
53
53
  if (item.divider || item === '') {
54
54
  return item
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nhsuk-decorated-components",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Form components for the NHS.UK Design System that require less parameters to collect data",
5
5
  "keywords": [
6
6
  "nhsuk",