File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
client/packages/lowcoder/src/pages/ComponentDoc Expand file tree Collapse file tree 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 };
1919const groups : Partial < Record < UICompCategory , CompInfo [ ] > > = { } ;
2020
2121Object . entries ( uiCompRegistry ) . forEach ( ( [ key , comp ] ) => {
22- const cat = comp . categories . find ( ( c ) => c !== "dashboards" ) ;
22+ const cat = comp . categories [ 0 ] ;
2323 if ( cat === undefined ) {
2424 return ;
2525 }
@@ -99,6 +99,8 @@ export default function ComponentDoc() {
9999 ) ;
100100 } , [ params . name ] ) ;
101101
102+ console . log ( "uiCompCategoryNames" , uiCompCategoryNames ) ;
103+
102104 return (
103105 < ExampleContext . Provider value = { { name : params . name } } >
104106 < Helmet >
@@ -126,7 +128,7 @@ export default function ComponentDoc() {
126128 return (
127129 < div className = "nav-group" key = { key } >
128130 < div className = "nav-group-title" >
129- { uiCompCategoryNames [ key as UICompCategory ] }
131+ { uiCompCategoryNames [ key as UICompCategory ] }
130132 </ div >
131133 < div >
132134 { children . map ( ( n ) => (
You can’t perform that action at this time.
0 commit comments