fix(dashboard): minor adjustments here and there
This commit is contained in:
@@ -27,7 +27,7 @@ const ProfileCharts = ({ profileId, projectId }: Props) => {
|
||||
},
|
||||
],
|
||||
id: 'A',
|
||||
name: '*',
|
||||
name: 'screen_view',
|
||||
displayName: 'Events',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -16,16 +16,8 @@ import { ReportBreakdownMore } from './ReportBreakdownMore';
|
||||
import type { ReportEventMoreProps } from './ReportEventMore';
|
||||
|
||||
export function ReportBreakdowns() {
|
||||
const { projectId } = useAppParams();
|
||||
const selectedBreakdowns = useSelector((state) => state.report.breakdowns);
|
||||
|
||||
const dispatch = useDispatch();
|
||||
const properties = useEventProperties({
|
||||
projectId,
|
||||
}).map((item) => ({
|
||||
value: item,
|
||||
label: item, // <RenderDots truncate>{item}</RenderDots>,
|
||||
}));
|
||||
|
||||
const handleMore = (breakdown: IChartBreakdown) => {
|
||||
const callback: ReportEventMoreProps['onClick'] = (action) => {
|
||||
|
||||
@@ -115,7 +115,7 @@ export const chartRouter = createTRPCRouter({
|
||||
.map((item) => item.replace(/\.([0-9]+)/g, '[*]'))
|
||||
.map((item) => `properties.${item}`);
|
||||
|
||||
if (event === '*') {
|
||||
if (event === '*' || !event) {
|
||||
properties.push('name');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user