feat: set local state null

This commit is contained in:
karishmas6
2024-10-21 02:29:34 +05:30
parent 196b810a17
commit 3782ee2a34

View File

@@ -85,12 +85,8 @@ export const IntegrationSettingsModal = ({ isOpen, handleStart, handleClose }: I
{ withCredentials: true }
);
setRecording((prev: any) => ({
...prev,
google_sheet_id: null,
google_sheet_name: null,
google_sheet_email: null,
}));
setRecording(null);
setSpreadsheets([]);
setSettings({ spreadsheetId: '', spreadsheetName: '', data: '' });
} catch (error: any) {
console.error('Error removing Google Sheets integration:', error.response?.data?.message || error.message);