diff --git a/app/react/V2/Components/Forms/MultiselectList.tsx b/app/react/V2/Components/Forms/MultiselectList.tsx index a981a2aff0..f1d172f781 100644 --- a/app/react/V2/Components/Forms/MultiselectList.tsx +++ b/app/react/V2/Components/Forms/MultiselectList.tsx @@ -47,7 +47,6 @@ const MultiselectList = ({ singleSelect = false, allowSelelectAll = false, }: MultiselectListProps) => { - console.log(value); const [selectedItems, setSelectedItems] = useState(value || []); const [showAll, setShowAll] = useState(true); const [searchTerm, setSearchTerm] = useState(''); diff --git a/app/react/V2/Routes/Settings/IX/components/PDFSidepanel.tsx b/app/react/V2/Routes/Settings/IX/components/PDFSidepanel.tsx index 40637ddc42..eebfcff1f6 100644 --- a/app/react/V2/Routes/Settings/IX/components/PDFSidepanel.tsx +++ b/app/react/V2/Routes/Settings/IX/components/PDFSidepanel.tsx @@ -1,7 +1,7 @@ /* eslint-disable max-lines */ /* eslint-disable react/jsx-props-no-spreading */ /* eslint-disable max-statements */ -import React, { useEffect, useRef, useState } from 'react'; +import React, { useEffect, useState } from 'react'; import { useForm } from 'react-hook-form'; import { useSetAtom, useAtomValue } from 'jotai'; import { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/24/outline'; @@ -135,9 +135,7 @@ const PDFSidepanel = ({ onEntitySave, property, }: PDFSidepanelProps) => { - const pdfContainerRef = useRef(null); const [pdf, setPdf] = useState(); - const [pdfContainerHeight, setPdfContainerHeight] = useState(0); const [selectedText, setSelectedText] = useState(); const [selectionError, setSelectionError] = useState(); const [highlights, setHighlights] = useState(); @@ -210,11 +208,6 @@ const PDFSidepanel = ({ ); } - if (pdfContainerRef.current) { - const { height } = pdfContainerRef.current.getBoundingClientRect(); - setPdfContainerHeight(height); - } - return () => { setSelectedText(undefined); setSelectionError(undefined); @@ -224,13 +217,6 @@ const PDFSidepanel = ({ }; }, [pdf, setValue, showSidepanel, suggestion]); - useEffect(() => { - if (pdfContainerRef.current) { - const { height } = pdfContainerRef.current.getBoundingClientRect(); - setPdfContainerHeight(height); - } - }, [labelInputIsOpen, pdfContainerRef.current]); - const onSubmit = async (value: { field: PropertyValueSchema | PropertyValueSchema[] | undefined; }) => { @@ -311,7 +297,7 @@ const PDFSidepanel = ({ } const inputType = type === 'numeric' ? 'number' : type; return ( -
+
{ @@ -416,13 +402,13 @@ const PDFSidepanel = ({ title={entity?.title} closeSidepanelFunction={() => setShowSidepanel(false)} > -
+
-
+
{pdf && ( {' '}