Skip to content

Commit

Permalink
chore: update dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Pagebakers committed Nov 4, 2023
1 parent 52cc52d commit f4022c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/website/src/data/blocks/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ export function getAllComponents(): ComponentInfo[] {
export function getComponent(
categoryName: string,
componentName: string,
rootFolder = getRootFolder()
rootFolder
): ComponentInfo | null {
const componentDirectory = path.join(rootFolder, categoryName, componentName)
console.log(componentDirectory)
const componentAttributes = path.join(componentDirectory, 'attributes.json')

if (fs.lstatSync(componentDirectory).isDirectory()) {
Expand Down

0 comments on commit f4022c8

Please sign in to comment.