Skip to content

Commit

Permalink
unresolved dep. fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vitPinchuk committed Jun 27, 2024
1 parent 8cd1870 commit 42fa0ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/components/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"jest": true
},
"extends": ["plugin:prettier/recommended", "@volkovlabs/eslint-config", "plugin:storybook/recommended"],
"include": ["./src", ".config/types", ".config/jest-setup.ts", "./test"],
"plugins": ["@typescript-eslint/eslint-plugin"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"storybook-dark-mode": "^3.0.1",
"style-loader": "^3.3.3",
"tslib": "^2.6.3",
"typescript": "^5.2.2",
"typescript": "^5.4.5",
"util": "^0.12.5"
},
"files": [
Expand Down
4 changes: 3 additions & 1 deletion packages/components/src/components/Form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ export const Form = <TValue extends object>({
showSeconds={field.showSeconds}
date={dateTime(field.value)}
onChange={(value) => {
field.onChange(value.toISOString());
if (value) {
field.onChange(value.toISOString());
}
}}
data-testid={TEST_IDS.form.fieldDatetime()}
/>
Expand Down

0 comments on commit 42fa0ab

Please sign in to comment.