hof 20.0.1 → 20.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -121,7 +121,8 @@ module.exports = SuperClass => class extends SuperClass {
121
121
  }
122
122
 
123
123
  getStepForField(key, steps) {
124
- return Object.keys(steps).filter(step => steps[step].fields && steps[step].fields.indexOf(key) > -1)[0];
124
+ const keyName = Array.isArray(key) ? key[0] : key;
125
+ return Object.keys(steps).filter(step => steps[step].fields && steps[step].fields.indexOf(keyName) > -1)[0];
125
126
  }
126
127
 
127
128
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "20.0.1",
4
+ "version": "20.0.2",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",