Skip to content

Commit 06d68ed

Browse files
author
FalkWolsky
committed
Fixing components Docu to not exclude Dashboards section
1 parent a8da7a1 commit 06d68ed

File tree

1 file changed

+4
-2
lines changed
  • client/packages/lowcoder/src/pages/ComponentDoc

1 file changed

+4
-2
lines changed

client/packages/lowcoder/src/pages/ComponentDoc/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type CompInfo = UICompManifest & { key: string };
1919
const groups: Partial<Record<UICompCategory, CompInfo[]>> = {};
2020

2121
Object.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) => (

0 commit comments

Comments
 (0)