Skip to content

Commit

Permalink
fix: fix the bug that use defaultstyle when value is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerWQH2023 committed Oct 9, 2024
1 parent 9c197f3 commit a73f339
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export const value2Custom = async (
export function custom2value(value: any, customConfig: CustomPaintItem) {
const { custom, normalization, default: defaultValue } = customConfig;

if (!value) return defaultValue;
if (value === undefined || value === null) return defaultValue;

// 优先处理
if (normalization) {
Expand Down

0 comments on commit a73f339

Please sign in to comment.