From e90c095bae4a36823ac247ae632cd089e078993f Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 6 Sep 2024 12:12:32 +0530 Subject: [PATCH] fix: proper type for selected pagination type --- src/components/organisms/RightSidePanel.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index 84f44ab2..e5e57170 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -23,7 +23,7 @@ export const RightSidePanel = () => { const [errors, setErrors] = useState<{ [id: number]: string }>({}); const [confirmedTextSteps, setConfirmedTextSteps] = useState<{ [id: number]: boolean }>({}); const [showPaginationOptions, setShowPaginationOptions] = useState(false); - const [selectedPaginationSetting, setSelectedPaginationSetting] = useState(null); + const [selectedPaginationSetting, setSelectedPaginationSetting] = useState(''); const { lastAction, notify } = useGlobalInfoStore(); const { getText, startGetText, stopGetText, getScreenshot, startGetScreenshot, stopGetScreenshot, paginationMode, getList, startGetList, stopGetList, startPaginationMode, stopPaginationMode } = useActionContext(); @@ -121,7 +121,7 @@ export const RightSidePanel = () => { const resetListState = useCallback(() => { setShowPaginationOptions(false); - setSelectedPaginationSetting(null); + setSelectedPaginationSetting(''); }, []); const handleStopGetList = useCallback(() => { @@ -154,7 +154,7 @@ export const RightSidePanel = () => { } stopCaptureAndEmitGetListSettings(); setShowPaginationOptions(false); - setSelectedPaginationSetting(null); + setSelectedPaginationSetting(''); }, [selectedPaginationSetting, stopCaptureAndEmitGetListSettings, notify]); const handlePaginationSettingSelect = (option: string) => {