Skip to content

Commit

Permalink
feat(BaseHead): Remove unnecessary props assignment
Browse files Browse the repository at this point in the history
The code change removes the unnecessary assignment of props in the BaseHead component. The defaultProps object is now directly destructured to retrieve the title and description values. This simplifies the code and improves readability.
  • Loading branch information
SakuraIsayeki committed Jun 22, 2024
1 parent 8769c3f commit 4f282f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodsoft_moltenobsidian_web/src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const defaultProps = {
description: ".NET 6+ Library for Obsidian-flavoured Markdown parsing for Blazor with Vault mapping support."
}
const { title, description } = Astro.props || defaultProps;
const { title, description } = defaultProps;
const base = import.meta.env.BASE_URL ?? "/";
---

Expand Down

0 comments on commit 4f282f2

Please sign in to comment.