Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fix DataGrid JSX nesting

Mike Caoc99ab3102ddb
diff --git a/src/components/common/DataGrid.tsx b/src/components/common/DataGrid.tsx
index 95de94981..a31985265 100644
--- a/src/components/common/DataGrid.tsx
+++ b/src/components/common/DataGrid.tsx
@@ -127,22 +127,21 @@ export function DataGrid({
renderEmpty={renderEmpty}
>
{data && (
- <div
- style={{
- display: 'grid',
- gridTemplateColumns: 'minmax(0, 1fr)',
- overflowX: 'auto',
- }}
- >
+ <div
+ style={{
+ display: 'grid',
+ gridTemplateColumns: 'minmax(0, 1fr)',
+ overflowX: 'auto',
+ }}
+ >
<Column>
{isValidElement(child)
? cloneElement(child as ReactElement<any>, { displayMode })
: child}
</Column>
- </div>
- )}
- </LoadingPanel>
- </Column>
+ </div>
+ )}
+ </LoadingPanel>
{showPager && (
<Row marginTop="4">
<Pager