feat: navigate -1
This commit is contained in:
@@ -678,8 +678,13 @@ export const RobotIntegrationPage = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleBack = () => {
|
const handleBack = () => {
|
||||||
if (!recordingId) return;
|
if (!recordingId) {
|
||||||
|
console.error("Cannot navigate: recordingId is null");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
setSelectedIntegrationType(null);
|
setSelectedIntegrationType(null);
|
||||||
|
setSettings({ ...settings, integrationType: "airtable" });
|
||||||
const basePath = robotPath === "prebuilt-robots" ? "/prebuilt-robots" : "/robots";
|
const basePath = robotPath === "prebuilt-robots" ? "/prebuilt-robots" : "/robots";
|
||||||
navigate(`${basePath}/${recordingId}/integrate`);
|
navigate(`${basePath}/${recordingId}/integrate`);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user