Skip to content

Commit

Permalink
fix: mappedMetadata should be drawn from unmapped path
Browse files Browse the repository at this point in the history
  • Loading branch information
dominique-pfister committed Apr 24, 2023
1 parent d5b151e commit 8aa7b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/steps/extract-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default function extractMetaData(state, req) {
// with local metadata from document
const metaConfig = Object.assign(
state.metadata.getModifiers(state.info.unmappedPath || state.info.path),
state.mappedMetadata.getModifiers(state.info.path),
state.mappedMetadata.getModifiers(state.info.unmappedPath),
getLocalMetadata(hast),
);

Expand Down

0 comments on commit 8aa7b79

Please sign in to comment.