From 521983bce06ca543d39b62b345ff8e92c562f118 Mon Sep 17 00:00:00 2001 From: A happy cat Date: Mon, 10 Jun 2024 16:51:11 +0200 Subject: [PATCH] fixed lost of date after closing the panel in IX --- .../V2/Routes/Settings/IX/components/PDFSidepanel.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/react/V2/Routes/Settings/IX/components/PDFSidepanel.tsx b/app/react/V2/Routes/Settings/IX/components/PDFSidepanel.tsx index cf647bd994..f78c129e79 100644 --- a/app/react/V2/Routes/Settings/IX/components/PDFSidepanel.tsx +++ b/app/react/V2/Routes/Settings/IX/components/PDFSidepanel.tsx @@ -225,10 +225,8 @@ const PDFSidepanel = ({ }, [pdf, setValue, showSidepanel, suggestion]); useEffect(() => { - console.log('pdfContainerRef', pdfContainerRef); if (pdfContainerRef.current) { const { height } = pdfContainerRef.current.getBoundingClientRect(); - console.log('height', height); setPdfContainerHeight(height); } }, [labelInputIsOpen, pdfContainerRef.current]); @@ -313,7 +311,7 @@ const PDFSidepanel = ({ } const inputType = type === 'numeric' ? 'number' : type; return ( -
+
{ @@ -380,7 +378,7 @@ const PDFSidepanel = ({ }); return ( -
+
{ setValue('field', values, { shouldDirty: true }); @@ -462,7 +460,7 @@ const PDFSidepanel = ({ {labelInputIsOpen ? : }
- {labelInputIsOpen && renderLabel()} + {renderLabel()}