fix: format

This commit is contained in:
karishmas6
2024-08-31 22:45:51 +05:30
parent 08229c3867
commit 728aa54619

View File

@@ -90,7 +90,7 @@ export const RightSidePanel = () => {
const getListSettingsObject = useCallback(() => { const getListSettingsObject = useCallback(() => {
let settings: { let settings: {
listSelector?: string; listSelector?: string;
fields?: Record<string, { selector: string; tag?: string; [key: string]: any }>; fields?: Record<string, { selector: string; tag?: string;[key: string]: any }>;
pagination?: { type: string; selector?: string } pagination?: { type: string; selector?: string }
} = {}; } = {};
@@ -132,7 +132,7 @@ export const RightSidePanel = () => {
} }
}, [stopGetList, getListSettingsObject, socket, notify]); }, [stopGetList, getListSettingsObject, socket, notify]);
const handleConfirmListCapture = useCallback(() => { const handleConfirmListCapture = useCallback(() => {
if (!selectedPaginationSetting) { if (!selectedPaginationSetting) {
@@ -142,7 +142,7 @@ export const RightSidePanel = () => {
// Proceed to stop capture and emit settings only after pagination type is selected // Proceed to stop capture and emit settings only after pagination type is selected
stopCaptureAndEmitGetListSettings(); stopCaptureAndEmitGetListSettings();
setShowPaginationOptions(false); setShowPaginationOptions(false);
setSelectedPaginationSetting(null); setSelectedPaginationSetting(null);
}, [selectedPaginationSetting, stopCaptureAndEmitGetListSettings]); }, [selectedPaginationSetting, stopCaptureAndEmitGetListSettings]);
const handlePaginationSettingSelect = (option: string) => { const handlePaginationSettingSelect = (option: string) => {