From a01f99315b2f963f5da64594deabe23de6e47d49 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Sun, 7 May 2023 14:37:57 +0300 Subject: [PATCH] block ReloadButton while fetching --- .../Calculation/Form/ELT/Components/ReloadButton.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/web/Components/Calculation/Form/ELT/Components/ReloadButton.tsx b/apps/web/Components/Calculation/Form/ELT/Components/ReloadButton.tsx index 63be65e..85593cb 100644 --- a/apps/web/Components/Calculation/Form/ELT/Components/ReloadButton.tsx +++ b/apps/web/Components/Calculation/Form/ELT/Components/ReloadButton.tsx @@ -7,12 +7,17 @@ import { ReloadOutlined } from 'ui/elements/icons'; export const ReloadButton = observer( ({ storeSelector, onClick }: { onClick: () => void; storeSelector: StoreSelector }) => { const { $tables } = useStore(); - const { validation } = storeSelector($tables.elt); + const { validation, getRows: rows } = storeSelector($tables.elt); const hasErrors = validation.hasErrors; return ( -