Skip to content

Commit

Permalink
why isnt that working?
Browse files Browse the repository at this point in the history
  • Loading branch information
simeydotme committed Sep 4, 2023
1 parent df18f66 commit e55d47c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Reusable/Option.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const propTypeString = Array.isArray(propType) ? propType.join(" | ") : propType
const isRender = propName && propType && defaultValue;
// fix up relative links due to pathing issues in vite/astro
let usableLink = link?.replace(/^\.?\//, "");
let usableLink = link?.replace(/^\.?\//, "../");
if ( !link?.match(/^\.?\//) ) {
usableLink = `examples/${link}`
usableLink = `../examples/${link}`
}
---

Expand Down

0 comments on commit e55d47c

Please sign in to comment.