We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c70eab0 commit 450e095Copy full SHA for 450e095
cheatsheet/src/pages/cheatsheet.tsx
@@ -33,11 +33,13 @@ const CheatsheetPage = () => {
33
34
const Cheatsheet = () => (
35
<div className="p-2 gap-2 xl:p-4 xl:gap-4 columns-1 md:columns-2 xl:columns-3 xl:max-w-[1600px] xl:mx-auto">
36
- {cheatsheetInfo.sections.map((section) => (
37
- <CheatsheetSection>
38
- <CheatsheetListComponent section={section} />
39
- </CheatsheetSection>
40
- ))}
+ {cheatsheetInfo.sections
+ .filter((section) => section.items.length > 0)
+ .map((section) => (
+ <CheatsheetSection>
+ <CheatsheetListComponent section={section} />
41
+ </CheatsheetSection>
42
+ ))}
43
<CheatsheetSection>
44
<CheatsheetLegendComponent data={cheatsheetLegend} />
45
</CheatsheetSection>
0 commit comments