From 2c05a435133cb9b3c695d4bb42ce4ed642c9a969 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Fri, 15 Sep 2023 13:57:57 +0300 Subject: [PATCH] elt/kasko: fix set row with catch error --- apps/web/Components/Calculation/Form/ELT/Kasko.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/Components/Calculation/Form/ELT/Kasko.tsx b/apps/web/Components/Calculation/Form/ELT/Kasko.tsx index 9d3dd73..2108907 100644 --- a/apps/web/Components/Calculation/Form/ELT/Kasko.tsx +++ b/apps/web/Components/Calculation/Form/ELT/Kasko.tsx @@ -10,13 +10,13 @@ import { useStore } from '@/stores/hooks'; import { defaultRow } from '@/stores/tables/elt/default-values'; import { useApolloClient } from '@apollo/client'; import { observer } from 'mobx-react-lite'; -import { sift } from 'radash'; +import { omit, sift } from 'radash'; import { Flex } from 'ui/grid'; const storeSelector: StoreSelector = ({ kasko }) => kasko; const initialData = { - ...defaultRow, + ...omit(defaultRow, ['name', 'key', 'id']), error: null, kaskoSum: 0, paymentPeriods: [