diff --git a/packages/expo-atlas-ui/app/(atlas)/[bundle].tsx b/packages/expo-atlas-ui/app/(atlas)/[bundle].tsx index e625c29..5b16767 100644 --- a/packages/expo-atlas-ui/app/(atlas)/[bundle].tsx +++ b/packages/expo-atlas-ui/app/(atlas)/[bundle].tsx @@ -25,9 +25,6 @@ export default function BundlePage() { const modules = useModuleGraphData(bundle.id, filters); const treeHasData = !!modules.data?.data?.children?.length; - const modulesAreFiltered = modules.data - ? modules.data.filtered.moduleFiles !== modules.data.bundle.moduleFiles - : null; return ( @@ -41,16 +38,16 @@ export default function BundlePage() { {!!modules.data && {modules.data.bundle.moduleFiles} modules} {!!modules.data && } - {!!modules.data && modulesAreFiltered && ( - visible:} - > - {modules.data.filtered.moduleFiles} modules - - - )} + {!!modules.data && filtersEnabled && ( + visible:} + > + {modules.data.filtered.moduleFiles} modules + + + )} diff --git a/packages/expo-atlas-ui/components/PropertySummary.tsx b/packages/expo-atlas-ui/components/PropertySummary.tsx index ad43c60..980e35a 100644 --- a/packages/expo-atlas-ui/components/PropertySummary.tsx +++ b/packages/expo-atlas-ui/components/PropertySummary.tsx @@ -9,14 +9,19 @@ export function PropertySummary( props: PropsWithChildren<{ className?: string; prefix?: ReactNode }> ) { return ( -
+
{props.prefix} {Children.map(props.children, (child, index) => { if (index === 0) return child; if (!child) return null; return ( <> - - + - {child} );