Skip to content

Commit

Permalink
fix: remove useless required icon (#74)
Browse files Browse the repository at this point in the history
* 2.0.13-0

* docs: update docs

* fix: remove require icon
  • Loading branch information
sherotree authored Apr 13, 2022
1 parent 565feb4 commit 24ee83f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
7 changes: 1 addition & 6 deletions src/components/DcCharts/chart-map/configurator.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import * as React from 'react';
import { CommonConfigurator } from 'src/components/DcCharts/common';
import ChartEditorStore from 'src/stores/chart-editor';

export default () => {
const viewCopy = ChartEditorStore.useStore((s) => s.viewCopy);
const { updateEditor } = ChartEditorStore;
const fields = [{}];

return <CommonConfigurator fields={fields} />;
return <CommonConfigurator />;
};
7 changes: 1 addition & 6 deletions src/components/DcCharts/chart-metric/configurator.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import * as React from 'react';
import { CommonConfigurator } from 'src/components/DcCharts/common';
import ChartEditorStore from 'src/stores/chart-editor';

export default () => {
const viewCopy = ChartEditorStore.useStore((s) => s.viewCopy);
const { updateEditor } = ChartEditorStore;
const fields = [{}];

return <CommonConfigurator fields={fields} />;
return <CommonConfigurator />;
};
2 changes: 1 addition & 1 deletion src/components/DcCharts/chart-pie/option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function getOption(data: DC.StaticData, config: DC.ChartConfig) {
...item,
data: map(item.data, (x: any) => ({
...x,
name: x?.i18n?.alias?.[locale] || x.name,
name: x?.i18n?.alias?.[locale] || x?.name || '',
})),
type: 'pie',
radius: isShowTotal ? ['50%', '70%'] : '70%',
Expand Down

0 comments on commit 24ee83f

Please sign in to comment.