mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 04:45:08 +03:00
fix(design-system): guard missing registry components
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Made-with: Cursor
This commit is contained in:
1 parent
9af1fa01c2
commit
e2a0472ffc
1 file changed
+9
@@ -55,6 +55,9 @@ export function rehypeComponent() {
|
||||
src = srcPath
|
||||
} else {
|
||||
const component = Index[style.name][name]
|
||||
if (!component) {
|
||||
continue
|
||||
}
|
||||
// console.log('got to ELSE STATEMENT')
|
||||
// console.log('filename', fileName)
|
||||
// console.log('name', name)
|
||||
@@ -124,6 +127,9 @@ export function rehypeComponent() {
|
||||
try {
|
||||
for (const style of styles) {
|
||||
const component = Index[style.name][name]
|
||||
if (!component) {
|
||||
continue
|
||||
}
|
||||
// console.log('GOT HERE')
|
||||
const src = component.files[0]
|
||||
|
||||
@@ -176,6 +182,9 @@ export function rehypeComponent() {
|
||||
try {
|
||||
for (const style of styles) {
|
||||
const component = Index[style.name][name]
|
||||
if (!component) {
|
||||
continue
|
||||
}
|
||||
// console.log('GOT HERE')
|
||||
const src = component.files[0]
|
||||
|
||||
|
||||
Reference in new issue
Block a user