Skip to content

Commit

Permalink
Merge pull request #5 from johnhenry/patch-1
Browse files Browse the repository at this point in the history
Fix missing props
  • Loading branch information
jonasmerlin authored Oct 19, 2021
2 parents e0325fc + 45a4a1e commit cf67648
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SEO.astro
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ export interface Props {
creator?: string;
}
}
const { props } = Astro;
const {
title,
description,
canonical,
noindex,
nofollow,
openGraph
} = Astro.props
} = props;
function validateProps(props) {
const {
Expand Down Expand Up @@ -83,7 +83,7 @@ function validateProps(props) {
}
}
validateProps(Astro.props);
validateProps(props);
function generateOpenGraphBasicTags(props: Props) {
if (props.openGraph) {
Expand Down

0 comments on commit cf67648

Please sign in to comment.