This is an automated email from the ASF dual-hosted git repository. wangzx pushed a commit to branch release-dev in repository https://gitbox.apache.org/repos/asf/echarts.git
commit b0a6c0e89a3c3ea30e000ef004758a8279920f20 Author: plainheart <[email protected]> AuthorDate: Tue Dec 3 18:27:11 2024 +0800 fix(boxplot): simplify `_hasEncodeRule` logic (#20324) --- src/chart/helper/whiskerBoxCommon.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/chart/helper/whiskerBoxCommon.ts b/src/chart/helper/whiskerBoxCommon.ts index 9502d3b6f..efd425afa 100644 --- a/src/chart/helper/whiskerBoxCommon.ts +++ b/src/chart/helper/whiskerBoxCommon.ts @@ -57,10 +57,7 @@ class WhiskerBoxCommonMixin<Opts extends CommonOption> { */ _hasEncodeRule(key: string) { const encodeRules = this.getEncode(); - if (encodeRules && encodeRules.data && encodeRules.data.has(key)) { - return encodeRules.data.get(key) != null; - } - return false; + return encodeRules && encodeRules.get(key) != null; } /** --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
