fix(dashboard): change "not set" to direct / not set
This commit is contained in:
@@ -6,6 +6,7 @@ import { useState } from 'react';
|
|||||||
|
|
||||||
import type { IChartType } from '@openpanel/validation';
|
import type { IChartType } from '@openpanel/validation';
|
||||||
|
|
||||||
|
import { NOT_SET_VALUE } from '@openpanel/constants';
|
||||||
import { ReportChart } from '../report-chart';
|
import { ReportChart } from '../report-chart';
|
||||||
import { Widget, WidgetBody } from '../widget';
|
import { Widget, WidgetBody } from '../widget';
|
||||||
import { OverviewChartToggle } from './overview-chart-toggle';
|
import { OverviewChartToggle } from './overview-chart-toggle';
|
||||||
@@ -318,6 +319,8 @@ export default function OverviewTopSources({
|
|||||||
previous: false,
|
previous: false,
|
||||||
}}
|
}}
|
||||||
options={{
|
options={{
|
||||||
|
renderSerieName: (name) =>
|
||||||
|
name[0] === NOT_SET_VALUE ? 'Direct / Not set' : name[0],
|
||||||
onClick: (item) => {
|
onClick: (item) => {
|
||||||
switch (widget.key) {
|
switch (widget.key) {
|
||||||
case 'all':
|
case 'all':
|
||||||
|
|||||||
Reference in New Issue
Block a user