Skip to content

Commit fdbd6d0

Browse files
deleted duplicate declaration
1 parent fac309d commit fdbd6d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gatsby-node.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const onCreateBabelConfig = ({actions}) => {
8484
});
8585
};
8686

87-
export function createSlug ({relativePath}) {
87+
function createSlug ({relativePath}) {
8888
let slug;
8989
const parsedFilePath = path.parse(relativePath);
9090
if (parsedFilePath.name !== 'index' && parsedFilePath.dir !== '') {
@@ -141,8 +141,6 @@ export async function onCreateNode ({node, actions, getNode, loadNodeContent}) {
141141
}
142142
}
143143

144-
export const onCreateNode = onCreateNode;
145-
146144
export const createPages = ({graphql, actions}) => {
147145
const {createPage} = actions;
148146

0 commit comments

Comments
 (0)