File tree 1 file changed +4
-2
lines changed
client/packages/lowcoder/src/pages/ComponentDoc
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ type CompInfo = UICompManifest & { key: string };
19
19
const groups : Partial < Record < UICompCategory , CompInfo [ ] > > = { } ;
20
20
21
21
Object . entries ( uiCompRegistry ) . forEach ( ( [ key , comp ] ) => {
22
- const cat = comp . categories . find ( ( c ) => c !== "dashboards" ) ;
22
+ const cat = comp . categories [ 0 ] ;
23
23
if ( cat === undefined ) {
24
24
return ;
25
25
}
@@ -99,6 +99,8 @@ export default function ComponentDoc() {
99
99
) ;
100
100
} , [ params . name ] ) ;
101
101
102
+ console . log ( "uiCompCategoryNames" , uiCompCategoryNames ) ;
103
+
102
104
return (
103
105
< ExampleContext . Provider value = { { name : params . name } } >
104
106
< Helmet >
@@ -126,7 +128,7 @@ export default function ComponentDoc() {
126
128
return (
127
129
< div className = "nav-group" key = { key } >
128
130
< div className = "nav-group-title" >
129
- { uiCompCategoryNames [ key as UICompCategory ] }
131
+ { uiCompCategoryNames [ key as UICompCategory ] }
130
132
</ div >
131
133
< div >
132
134
{ children . map ( ( n ) => (
You can’t perform that action at this time.
0 commit comments