diff --git a/lib/content-types/only.js b/lib/content-types/only.js index 53c07b6..153fb34 100644 --- a/lib/content-types/only.js +++ b/lib/content-types/only.js @@ -25,9 +25,7 @@ const only = (type, configuration) => { } // check if repeatable but not an array - if (attr.hasOwnProperty('repeatable') && - typeof attr.repeatable === 'object' && - !Array.isArray(config[attr.id])) { + if (attr.hasOwnProperty('repeatable') && typeof attr.repeatable === 'object' && !Array.isArray(config[attr.id])) { config[attr.id] = [config[attr.id]]; }