Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove lodash es #126

Merged
merged 1 commit into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/chart-advisor/src/fieldUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const retainDatasetField = (dataset: Dataset, fields: UniqueId[]): Datase

// 移除dataset中的某些字段
export const removeDatasetField = (dataset: Dataset, fields: UniqueId[]): Dataset =>
dataset.map((data: DataItem) => omit(data, fields)) as Dataset;
dataset.map((data: DataItem) => omit(data, fields as any)) as Dataset;

/**
* 维度笛卡尔积的原始信息,因此可以通过cartesianInfo匹配原始的维度字段
Expand Down Expand Up @@ -124,7 +124,7 @@ export const fold = (
dataset.forEach((data: DataItem) => {
fields.forEach((field: UniqueId) => {
// 是否保留被展开的字段
const _data = retains ? data : omit(data, fields);
const _data = retains ? data : omit(data, fields as any);
_dataset.push({
..._data,
[foldName]: aliasMap ? aliasMap[field] : field,
Expand Down
Loading