Skip to content

Commit

Permalink
build(deps): bump chrono-node from 2.2.6 to 2.7.5 in /superset-fronte…
Browse files Browse the repository at this point in the history
…nd (#26746)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Evan Rusackas <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Sep 27, 2024
1 parent 62fcc15 commit 61a2756
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
17 changes: 10 additions & 7 deletions superset-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion superset-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"bootstrap": "^3.4.1",
"brace": "^0.11.1",
"broadcast-channel": "^4.10.0",
"chrono-node": "^2.2.6",
"chrono-node": "^2.7.5",
"classnames": "^2.2.5",
"core-js": "^3.6.5",
"d3-scale": "^2.1.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ const getJSONSchema = () => {
if (value.default && value.format === 'date-time') {
jsonSchema.properties[key] = {
...value,
default: chrono.parseDate(value.default).toISOString(),
default: value.default
? chrono.parseDate(value.default)?.toISOString()
: null,
};
}
},
Expand Down

0 comments on commit 61a2756

Please sign in to comment.