Skip to content

Commit a0cb445

Browse files
committed
use content for defaults
1 parent b440063 commit a0cb445

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/metadata.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ export const moveArrayItem = (state, namePrefix, srcInd, targetInd) => {
134134
* @return {Object} metadata
135135
*/
136136
export const injectDefaultFields = (config, path, type, front_matter={}) => {
137-
if (!config.defaults) {
137+
if (!config.content.defaults) {
138138
return {};
139139
}
140-
const defaults = config.defaults;
140+
const defaults = config.content.defaults;
141141
let metafields = {};
142142
_.each(defaults, field => {
143143
const scope = field.scope;

0 commit comments

Comments
 (0)