diff --git a/app/components/Table/index.tsx b/app/components/Table/index.tsx
index 33497be0..31c08709 100644
--- a/app/components/Table/index.tsx
+++ b/app/components/Table/index.tsx
@@ -18,23 +18,26 @@ export type ListTableProps = {
className?: string
}
-export const ListTable = ({elements, sameTab, className}: ListTableProps) => (
-
- {elements.map(({pageid, title, subtitle, hasIcon}, i) => (
-
-
-
{title}
- {subtitle &&
{subtitle}
}
-
- {hasIcon &&
}
-
- ))}
-
-)
+export const ListTable = ({elements, sameTab, className}: ListTableProps) => {
+ if (!elements || elements.length === 0) return null
+ return (
+
+ {elements.map(({pageid, title, subtitle, hasIcon}, i) => (
+
+
+
{title}
+ {subtitle &&
{subtitle}
}
+
+ {hasIcon &&
}
+
+ ))}
+
+ )
+}
export default ListTable