feat: show !sheets found error via notify
This commit is contained in:
@@ -28,7 +28,7 @@ export const IntegrationSettingsModal = ({ isOpen, handleStart, handleClose }: I
|
|||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
const [error, setError] = useState<string | null>(null);
|
const [error, setError] = useState<string | null>(null);
|
||||||
|
|
||||||
const { recordingId } = useGlobalInfoStore();
|
const { recordingId, notify } = useGlobalInfoStore();
|
||||||
const [recording, setRecording] = useState<any>(null);
|
const [recording, setRecording] = useState<any>(null);
|
||||||
|
|
||||||
const authenticateWithGoogle = () => {
|
const authenticateWithGoogle = () => {
|
||||||
@@ -52,6 +52,7 @@ export const IntegrationSettingsModal = ({ isOpen, handleStart, handleClose }: I
|
|||||||
setSpreadsheets(response.data);
|
setSpreadsheets(response.data);
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
console.error('Error fetching spreadsheet files:', error.response?.data?.message || error.message);
|
console.error('Error fetching spreadsheet files:', error.response?.data?.message || error.message);
|
||||||
|
notify('error', `Error fetching spreadsheet files: ${error.response?.data?.message || error.message}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user