Skip to content

Commit

Permalink
Merge pull request #29 from RogerWQH2023/master
Browse files Browse the repository at this point in the history
fix a bug of geojson-render & add "postinstall" to package.json
  • Loading branch information
hongfaqiu authored Oct 9, 2024
2 parents bccd1d8 + a73f339 commit fe2a911
Show file tree
Hide file tree
Showing 3 changed files with 11,260 additions and 12,869 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"prepare": "husky install",
"lint": "turbo lint",
"lint:fix": "turbo lint:fix",
"lint:report": "eslint . --output-file eslint_report.json --format json"
"lint:report": "eslint . --output-file eslint_report.json --format json",
"postinstall": "pnpm run build"
},
"commitlint": {
"extends": [
Expand Down
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
Loading

0 comments on commit fe2a911

Please sign in to comment.