We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e8d69c commit bb48a77Copy full SHA for bb48a77
lib/prepare/loadConfig.js
@@ -41,11 +41,13 @@ function parseConfig (file) {
41
// reformat to match config since TOML does not allow different data type
42
// https://github.com/toml-lang/toml#array
43
const format = []
44
- Object.keys(data.head).forEach(meta => {
45
- data.head[meta].forEach(values => {
46
- format.push([meta, values])
+ if (data.head) {
+ Object.keys(data.head).forEach(meta => {
+ data.head[meta].forEach(values => {
47
+ format.push([meta, values])
48
+ })
49
})
- })
50
+ }
51
data.head = format
52
break
53
}
0 commit comments