From 42fa0abb74bb537a8ed0fd7b3de0345f19052707 Mon Sep 17 00:00:00 2001 From: vitPinchuk Date: Thu, 27 Jun 2024 12:14:09 +0300 Subject: [PATCH] unresolved dep. fix --- packages/components/.eslintrc | 1 + packages/components/package.json | 2 +- packages/components/src/components/Form/Form.tsx | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/components/.eslintrc b/packages/components/.eslintrc index 46a520e..e4defb0 100644 --- a/packages/components/.eslintrc +++ b/packages/components/.eslintrc @@ -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": { diff --git a/packages/components/package.json b/packages/components/package.json index e558850..6451ae1 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -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": [ diff --git a/packages/components/src/components/Form/Form.tsx b/packages/components/src/components/Form/Form.tsx index 9999bbb..caf43d1 100644 --- a/packages/components/src/components/Form/Form.tsx +++ b/packages/components/src/components/Form/Form.tsx @@ -319,7 +319,9 @@ export const Form = ({ 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()} />