OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
fix(dashboard): change "not set" to direct / not set
Carl-Gerhard Lindesvärd00c76105d489
diff --git a/apps/dashboard/src/components/overview/overview-top-sources.tsx b/apps/dashboard/src/components/overview/overview-top-sources.tsxindex e3783b0f9..819c4322b 100644--- a/apps/dashboard/src/components/overview/overview-top-sources.tsx+++ b/apps/dashboard/src/components/overview/overview-top-sources.tsx@@ -6,6 +6,7 @@ import { useState } from 'react';import type { IChartType } from '@openpanel/validation';+import { NOT_SET_VALUE } from '@openpanel/constants';import { ReportChart } from '../report-chart';import { Widget, WidgetBody } from '../widget';import { OverviewChartToggle } from './overview-chart-toggle';@@ -318,6 +319,8 @@ export default function OverviewTopSources({previous: false,}}options={{+ renderSerieName: (name) =>+ name[0] === NOT_SET_VALUE ? 'Direct / Not set' : name[0],onClick: (item) => {switch (widget.key) {case 'all':