Skip to content

Commit

Permalink
fix: condition.mapping 返回值与文档不符合,允许返回undefined与null (#2320)
Browse files Browse the repository at this point in the history
Co-authored-by: hekunyu <hekunyu.latte@bytedance.com>
  • Loading branch information
hemisu and hekunyu authored Aug 31, 2023
1 parent 8076481 commit fcc36bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/s2-core/src/common/interface/condition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface MappingResult extends ValueRange {
export type MappingFunction = (
fieldValue: number | string,
data: Record<string, any>,
) => MappingResult;
) => MappingResult | null | undefined;

/**
* One field can hold a condition
Expand Down

1 comment on commit fcc36bd

@vercel
Copy link

@vercel vercel bot commented on fcc36bd Aug 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

antvis-s2 – ./

antvis-s2-antv-s2.vercel.app
antvis-s2-git-master-antv-s2.vercel.app
antvis-s2.vercel.app

Please sign in to comment.